diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 8750861..d464a0e 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -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,