We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d920f4f commit c55bcfcCopy full SHA for c55bcfc
apps/api/src/media/handlers.ts
@@ -46,11 +46,9 @@ export async function uploadMedia(
46
47
const allowedFileSize = getMaxFileUploadSize(req);
48
if (req.files.file.size > allowedFileSize) {
49
- return res
50
- .status(400)
51
- .json({
52
- error: `${FILE_SIZE_EXCEEDED}. Allowed: ${allowedFileSize} bytes`,
53
- });
+ return res.status(400).json({
+ error: `${FILE_SIZE_EXCEEDED}. Allowed: ${allowedFileSize} bytes`,
+ });
54
}
55
56
const { error } = validateUploadOptions(req);
0 commit comments