File Upload Issues

0

Hello, I have a file upload script using dropzone and I get a 413 (Payload Too Large) response when loading files over 3.5 mb. My php ini settings for post_max_size and upload_max_filesize are both set to 40M.

Is there some other restriction I'm not aware of?

I am using a LAMP (PHP 7) Certified by Bitnami 7.3.15 instance.

asked 4 years ago305 views
2 Answers
0

Hi Turbo120,

Bitnami has some documentation to support this issue https://docs.bitnami.com/aws/infrastructure/lamp/administration/increase-upload-limit-php/

Have you already followed the recommendations there?

Thanks for using Lightsail,
Jonathan

AWS
answered 4 years ago
0

Thank you. I figured out that it was actually the cropper.js script making a 5 mb file into a 41mb file after cropping it before sending it to the server.

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions