Picture of Daniel Seixas
MaxFileSize exceeded
by Daniel Seixas - Wednesday, 12 September 2018, 10:37 AM

Hi everybody,

Hope you can help me with this issue. I'm trying to migrate content from adapt-authoring 0.4 to 0.5 using the export / import feature available in 0.5.

It worked reasonably well with small courses, but when I'm trying to upload a bigger course (378,6Mb) I get a MaxFileSize exceeded:

0|server   error: [11 Sep 2018 14:52:41 +02:00] Unable to import course: [maxFileSize exceeded, received 209716048 bytes of file data]

Anyone knows how to increase the file upload size limit in adapt authoring?

Thanks in advance




Picture of Daniel Seixas
Re: MaxFileSize exceeded
by Daniel Seixas - Thursday, 13 September 2018, 11:30 AM

Just in case that someone runs into the same problem, I've been able to solve it.

Node is using formidable lib to upload files... Formidable default upload size value is 200Mb.

I've been able to change this value modifying incoming_form.js file located at <adapt_folder>/node_modules/formidable/lib 

At line 28 you may change the value "200" for any desired vaule:

this.maxFileSize = opts.maxFileSize || 200 * 1024 * 1024;