Skip to content

Commit

Permalink
chore: set max file size to 8mb
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Aug 22, 2022
1 parent a846da9 commit 0fdef6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/decorators/attachment-upload.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fp = require('fastify-plugin');
const FileType = require('file-type');
const MAX_FILE_BYTES = 1024 * 16 * 1000; // 16mb - 16 024 000 bytes
const MAX_FILE_BYTES = 1024 * 8 * 1000; // 8mb - 8 024 000 bytes
const { upload } = require('../services/do');

// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
Expand Down

0 comments on commit 0fdef6f

Please sign in to comment.