Browse Source

Disable image processing of attachments

gh-pages
Andrew Kingston 6 years ago
parent
commit
4e214f4e87
  1. 9
      packages/server/src/api/controllers/static/index.js

9
packages/server/src/api/controllers/static/index.js

@ -53,10 +53,11 @@ exports.uploadFile = async function(ctx) {
const processedFileName = `${uuid.v4()}.${fileExtension}` const processedFileName = `${uuid.v4()}.${fileExtension}`
// need to handle image processing // need to handle image processing
await fileProcessor.process({ // TODO either offer this as an option, or don't do it at all
...file, // await fileProcessor.process({
extension: fileExtension, // ...file,
}) // extension: fileExtension,
// })
return prepareUpload({ return prepareUpload({
file, file,

Loading…
Cancel
Save