MulterError: File too large #293

Closed
opened 2022-12-19 15:22:37 +00:00 by dwarf · 3 comments
Contributor

I'm trying to upload a 257MB video to my instance but I'm getting the following error below with no indication of where things went wrong exactly:

Dec 19 16:20:03 odroidc4 foundkey[3819126]:   MulterError: File too large
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at abortWithCode (/media/sam/software/foundkey/node_modules/multer/lib/make-middleware.js:71:22)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at FileStream.<anonymous> (/media/sam/software/foundkey/node_modules/multer/lib/make-middleware.js:134:11)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at FileStream.emit (node:events:513:28)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at FileStream.emit (node:domain:489:12)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at SBMH.ssCb [as _cb] (/media/sam/software/foundkey/node_modules/busboy/lib/types/multipart.js:479:32)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at feed (/media/sam/software/foundkey/node_modules/streamsearch/lib/sbmh.js:248:10)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at SBMH.push (/media/sam/software/foundkey/node_modules/streamsearch/lib/sbmh.js:104:16)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at Multipart._write (/media/sam/software/foundkey/node_modules/busboy/lib/types/multipart.js:567:19)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at writeOrBuffer (node:internal/streams/writable:392:12)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at _write (node:internal/streams/writable:333:10)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at Writable.write (node:internal/streams/writable:337:10)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at IncomingMessage.ondata (node:internal/streams/readable:766:22)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at IncomingMessage.emit (node:events:513:28)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at IncomingMessage.emit (node:domain:489:12)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at Readable.read (node:internal/streams/readable:539:10)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at flow (node:internal/streams/readable:1023:34)
Dec 19 16:20:03 odroidc4 foundkey[3819126]:       at resume_ (node:internal/streams/readable:1004:3)

This is all the information given by the logs.

I'm trying to upload a 257MB video to my instance but I'm getting the following error below with no indication of where things went wrong exactly: ``` Dec 19 16:20:03 odroidc4 foundkey[3819126]: MulterError: File too large Dec 19 16:20:03 odroidc4 foundkey[3819126]: at abortWithCode (/media/sam/software/foundkey/node_modules/multer/lib/make-middleware.js:71:22) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at FileStream.<anonymous> (/media/sam/software/foundkey/node_modules/multer/lib/make-middleware.js:134:11) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at FileStream.emit (node:events:513:28) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at FileStream.emit (node:domain:489:12) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at SBMH.ssCb [as _cb] (/media/sam/software/foundkey/node_modules/busboy/lib/types/multipart.js:479:32) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at feed (/media/sam/software/foundkey/node_modules/streamsearch/lib/sbmh.js:248:10) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at SBMH.push (/media/sam/software/foundkey/node_modules/streamsearch/lib/sbmh.js:104:16) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at Multipart._write (/media/sam/software/foundkey/node_modules/busboy/lib/types/multipart.js:567:19) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at writeOrBuffer (node:internal/streams/writable:392:12) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at _write (node:internal/streams/writable:333:10) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at Writable.write (node:internal/streams/writable:337:10) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at IncomingMessage.ondata (node:internal/streams/readable:766:22) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at IncomingMessage.emit (node:events:513:28) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at IncomingMessage.emit (node:domain:489:12) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at Readable.read (node:internal/streams/readable:539:10) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at flow (node:internal/streams/readable:1023:34) Dec 19 16:20:03 odroidc4 foundkey[3819126]: at resume_ (node:internal/streams/readable:1004:3) ``` This is all the information given by the logs.
Owner

You hit the global file size upload limit. By default it is 250MiB. You can change it in the configuration file as maxFileSize.

You hit the global file size upload limit. By default it is 250MiB. You can change it in the configuration file as `maxFileSize`.
Author
Contributor

Those darn 7MB... I'm pleasantly surprised Foundkey has support for it in the config! Thanks so much

Those darn 7MB... I'm pleasantly surprised Foundkey has support for it in the config! Thanks so much
dwarf closed this issue 2022-12-19 16:19:56 +00:00
Owner

I've improved the error the API returns so it should be easier to understand if someone else comes across this in the future.

I've improved the error the API returns so it should be easier to understand if someone else comes across this in the future.
Sign in to join this conversation.
No labels
feature
fix
upkeep
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#293
No description provided.