Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Approx 200MB individual file upload limit #197

Open
adam-archer-wilkinson opened this issue Nov 2, 2018 · 4 comments
Open

Approx 200MB individual file upload limit #197

adam-archer-wilkinson opened this issue Nov 2, 2018 · 4 comments

Comments

@adam-archer-wilkinson
Copy link

Hi,
Thanks for a great piece of software. Just what I need!
I've got a system running Debian 9.5.0 amd64.
I've loaded https://deb.nodesource.com/setup_6.x since this seemed to be the only one able to run both "1.0.6", "master" and "stable".
With a 300MB file, I get "Oh my... something went wrong" and an [object Object] displayed on the screen under the 0.3GB label. A 200MB files goes in just fine.
Any ideas what I'm doing wrong please?

@adam-archer-wilkinson
Copy link
Author

scamhaji found a default file limit in node_modules/formidable/lib/incoming_form.js line 28:
this.maxFileSize = opts.maxFileSize || 200 * 1024 * 1024;
It seems to me that opts.maxFileSize isn't being set so the default 200MB limit is enforced.
See this.
Any suggestions on how to go about debugging npm stuff?

@daohu527
Copy link

daohu527 commented Jan 21, 2019

scamhaji found a default file limit in node_modules/formidable/lib/incoming_form.js line 28:
this.maxFileSize = opts.maxFileSize || 200 * 1024 * 1024;
It seems to me that opts.maxFileSize isn't being set so the default 200MB limit is enforced.
See this.
Any suggestions on how to go about debugging npm stuff?

You can set the config from the url(http://youtransferIp:5000), and the size is can set by yourself. you can set the notices like this:

Warning: the base URL is set to http://localhost:5000 but you are accessing this page from http://192.168.1.101:5000. It is recommended to update the BaseUrl setting.

@LordBonkerz
Copy link

Edit node_modules/formidable/lib/incoming_form.js

Add a zero to this:
this.maxFileSize = opts.maxFileSize || 2000 * 1024 * 1024;

This fixed the issue with 1G limit.

@carelessfinch
Copy link

Edit node_modules/formidable/lib/incoming_form.js

Add a zero to this:
this.maxFileSize = opts.maxFileSize || 2000 * 1024 * 1024;

This fixed the issue with 1G limit.

where is that file located i have install it using docker pull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants