'Error 503 after trying upload file
I'm using laravel and I have a form with two file fields, try to upload a file with 70mb but takes long and after returns an error 503 unavailable service.
I thought that was because php configuration, so I access to cpanel and change the upload_max_filesize to 256mb but it doesn't work yet.
What can I do to solve the problem?
Thank you
Solution 1:[1]
post_max_size = 1024M
upload_max_filesize = 1024M
max_execution_time = 3600
max_input_time = 3600
memory_limit = 1024M
edit those setting in your php.ini
Solution 2:[2]
You’re going to need to go find your nginx configuration files. /etc/nginx/sites-available/
Then edit the configuration file and add this :
server{
client_max_body_size 5M; //add this line into server section
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Kyi Win Htin |
| Solution 2 | Hamed Yarandi |
