skip to Main Content

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

2

Answers


  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

    Login or Signup to reply.
  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
    
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search