mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-05 19:40:09 +00:00
feat: defaults mime-type to octet-stream
This commit is contained in:
parent
c1bb2f5015
commit
81c94a40d5
@ -369,7 +369,7 @@ self.actuallyUpload = async (req, res, data = {}) => {
|
|||||||
albumid: data.albumid,
|
albumid: data.albumid,
|
||||||
age: data.age,
|
age: data.age,
|
||||||
originalname: field.file.name || '',
|
originalname: field.file.name || '',
|
||||||
mimetype: field.mime_type || '',
|
mimetype: field.mime_type || 'application/octet-stream'
|
||||||
}
|
}
|
||||||
req.files.push(file)
|
req.files.push(file)
|
||||||
|
|
||||||
@ -879,7 +879,7 @@ self.actuallyFinishChunks = async (req, res, files) => {
|
|||||||
filename: name,
|
filename: name,
|
||||||
originalname: file.original || '',
|
originalname: file.original || '',
|
||||||
extname,
|
extname,
|
||||||
mimetype: file.type || '',
|
mimetype: file.type || 'application/octet-stream',
|
||||||
path: destination,
|
path: destination,
|
||||||
size,
|
size,
|
||||||
hash,
|
hash,
|
||||||
|
Loading…
Reference in New Issue
Block a user