Forums

"413: Request Entity Too Large" - paid account, using Flask

Hi - I have a paid account and can successfully use the SFTP commands in the terminal of my local machine to upload files exceeding 100mb in size.

I'm trying to upload a file >100mb using Flask with the pysftp library. The upload is through a webpage form. The Flask app and webpage can successfully upload small files (biggest I tested was 2mb). The Flask app throws a "413: Request Entity Too Large" error when I try to upload the file that's >100mb.

If anyone can provide any assistance please weigh in, thank you.

That's the limit we have in place. You would need to split into chunks in the frontend and recompose in the backend.

Thank you for the reply. I am able to manually upload the >100mb file with the SFTP terminal commands. Does the limit only apply to uploads made through the Flask app?

Yes, it only applies to HTTP or HTTPS uploads -- either to the "Files" tab on our web interface, our own API, or to your site (if it supports file uploads).