Answers.Body: <p>Nginx's setting <code>client_max_body_size</code> was set to its default value of <code>1M</code> because it was not specified after provisioning the DO server with Laravel Forge. Weird thing is just that the user doesn't get any response.</p>
  
  <p><strong>Solution:</strong> Set <code>client_max_body_size</code> to something higher or 0 in your Nginx config file.</p>
  
  <p><a href="https://i.sstatic.net/Pvkam.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Pvkam.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-23T12:54:35.680Z
Answers.LastActivityDate: 2017-01-23T12:54:35.680Z
Answers.UserDisplayName: Johannes
Body: <p>I am trying to upload jpg assets to Craft. As long as the files are smaller than <strong>approx. 1MB</strong> it's working, even in bulk upload. As soon as there's a file bigger than 1MB Craft gets stuck like this:</p>
  
  <p><a href="https://i.sstatic.net/pgp6s.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pgp6s.png" alt="enter image description here"></a></p>
  
  <p>You can see on the image that files smaller as the 1MB have been uploaded successfully.</p>
  
  <p>The file doesn't show up in the assets directory on the server file system.</p>
  
  <p>I enabled devMode to take a look at the logs but no error level log entry shows up that is related to the upload request. JS console shows no errors as well.</p>
  
  <p>So my question is: What is going on? How can I fix this so I can upload files within the limits I specified in <code>php.ini</code>?</p>
  
  <p><strong>Some info:</strong><br>
  I am using Laravel Forge + DO<br>
  Web server: nginx/1.11.5<br>
  PHP Ver: 7.1.0<br>
  post_max_size = 14M<br>
  upload_max_filesize = 12M  </p>
  
  <p>PS: I say approx. 1MB because I was able to test with files that are roughly below/above 1MB file size.</p>
  
  <p><strong>Update</strong><br>
  I noticed Imagemagick was not installed. After installation: no difference. I even disabled GD: no difference. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-23T12:11:08.973Z
Comments.Text: Did you check that the settings has been applied, and did you check server logs?
Comments.UserDisplayName: Fred Carlsen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-23T12:43:31.863Z
Comments.Text: @FredCarlsen Yes the settings are showing up in Crafts PHPinfo. Which logs do you mean by server logs?
Comments.UserDisplayName: Johannes
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-23T12:49:25.527Z
Comments.Text: @FredCarlsen Man I got it. You pointed me to look inside `/var/log/nginx/domain-error.log`. It says: `client intended to send too large body`
Comments.UserDisplayName: Johannes
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-23T12:49:37.277Z
Comments.Text: I assume that it's returning a 500 error, so I'd make sure devMode is turned on. Then I would check phperrors.log, craft.log and any other relevant logs.
Comments.UserDisplayName: Fred Carlsen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-23T12:49:59.837Z
Comments.Text: Right, is that a limit in nginx?
Comments.UserDisplayName: Fred Carlsen
Tags: <assets><upload><nginx>
Title: Upload images bigger than 1MB not working
ThreadText: # Upload images bigger than 1MB not working
  
  (Asked by: username_0 on 2017-01-23)
  
  I am trying to upload jpg assets to Craft. As long as the files are smaller than **approx. 1MB** it's working, even in bulk upload. As soon as there's a file bigger than 1MB Craft gets stuck like this:
  
  [![enter image description here](https://i.sstatic.net/pgp6s.png)](https://i.sstatic.net/pgp6s.png)
  
  You can see on the image that files smaller as the 1MB have been uploaded successfully.
  
  The file doesn't show up in the assets directory on the server file system.
  
  I enabled devMode to take a look at the logs but no error level log entry shows up that is related to the upload request. JS console shows no errors as well.
  
  So my question is: What is going on? How can I fix this so I can upload files within the limits I specified in `php.ini`?
  
  **Some info:**  
  I am using Laravel Forge + DO  
  Web server: nginx/1.11.5  
  PHP Ver: 7.1.0  
  post\_max\_size = 14M  
  upload\_max\_filesize = 12M
  
  PS: I say approx. 1MB because I was able to test with files that are roughly below/above 1MB file size.
  
  **Update**  
  I noticed Imagemagick was not installed. After installation: no difference. I even disabled GD: no difference.
  
  **Tags:** assets, upload, nginx
  
  > **Comments:**
  > **username_1**: Did you check that the settings has been applied, and did you check server logs?  
  > **username_0**: @username_1 Yes the settings are showing up in Crafts PHPinfo. Which logs do you mean by server logs?  
  > **username_0**: @username_1 Man I got it. You pointed me to look inside `/var/log/nginx/domain-error.log`. It says: `client intended to send too large body`  
  > **username_1**: I assume that it's returning a 500 error, so I'd make sure devMode is turned on. Then I would check phperrors.log, craft.log and any other relevant logs.  
  > **username_1**: Right, is that a limit in nginx?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-01-23. Score: 2 | Accepted answer
  
  Nginx's setting `client_max_body_size` was set to its default value of `1M` because it was not specified after provisioning the DO server with Laravel Forge. Weird thing is just that the user doesn't get any response.
  
  **Solution:** Set `client_max_body_size` to something higher or 0 in your Nginx config file.
  
  [![enter image description here](https://i.sstatic.net/Pvkam.png)](https://i.sstatic.net/Pvkam.png)
  
  
  ---
  
  