mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-12 23:46:22 +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,
|
||||
age: data.age,
|
||||
originalname: field.file.name || '',
|
||||
mimetype: field.mime_type || '',
|
||||
mimetype: field.mime_type || 'application/octet-stream'
|
||||
}
|
||||
req.files.push(file)
|
||||
|
||||
@ -879,7 +879,7 @@ self.actuallyFinishChunks = async (req, res, files) => {
|
||||
filename: name,
|
||||
originalname: file.original || '',
|
||||
extname,
|
||||
mimetype: file.type || '',
|
||||
mimetype: file.type || 'application/octet-stream',
|
||||
path: destination,
|
||||
size,
|
||||
hash,
|
||||
|
Loading…
Reference in New Issue
Block a user