-
Notifications
You must be signed in to change notification settings - Fork 2
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
Cannot upload a photo if the size is more than #11
Comments
@benpro That is correct, the default limit is 15MB. The issue is likely PHP ini configuration |
@dansup I wonder why there was no error in my error.log for that. Do you override errors? |
If you use a reverse-proxy (Apache/Nginx) in front of the app run with Docker, you have to configure it to allow big bodies too. Otherwise the picture will be rejected. |
This should probably be added to the instructions. Changing php.ini doesn't help if you don't also add
to nginx.conf. |
Absolutely I got hung up on this. Some nice folks on IRC sorted me out and pointed me in the right direction. I was also made aware that I needed to configure the correct php.ini for FPM. |
The same thing is happening to me, where I find the file in which I can modify the size? |
@mikail97 you want to edit |
If I upload a photo with a size superior to 1900kB it produce error.
Steps to reproduce:
Get a big picture
Compress to 1900kB
jpegoptim -S1900
Upload
It works
Get a big picture
Keep it superior to 1900kB, i.e. 2000kB
jpegoptim -S2000
Upload
It fails.
Logs:
.env:
The text was updated successfully, but these errors were encountered: