mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
parent
d796b31bd1
commit
896f74e0ca
@ -255,6 +255,12 @@ module.exports = {
|
|||||||
timeout: 30 * 60 * 1000 // 30 minutes
|
timeout: 30 * 60 * 1000 // 30 minutes
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
Folder where in-progress chunks should be kept temporarily.
|
||||||
|
NOTE: When set to falsy value, defaults to "chunks" subfolder within uploads folder.
|
||||||
|
*/
|
||||||
|
chunksFolder: null,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Max file size allowed for upload by URLs. Needs to be in MB.
|
Max file size allowed for upload by URLs. Needs to be in MB.
|
||||||
NOTE: Set to falsy value to disable upload by URLs.
|
NOTE: Set to falsy value to disable upload by URLs.
|
||||||
|
@ -25,7 +25,9 @@ for (const fsFunc of fsFuncs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.uploads = path.resolve(config.uploads.folder)
|
self.uploads = path.resolve(config.uploads.folder)
|
||||||
self.chunks = path.join(self.uploads, 'chunks')
|
self.chunks = config.uploads.chunksFolder
|
||||||
|
? path.resolve(config.uploads.chunksFolder)
|
||||||
|
: path.join(self.uploads, 'chunks')
|
||||||
self.thumbs = path.join(self.uploads, 'thumbs')
|
self.thumbs = path.join(self.uploads, 'thumbs')
|
||||||
self.zips = path.join(self.uploads, 'zips')
|
self.zips = path.join(self.uploads, 'zips')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user