We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
post_max_size
upload_max_filesize
System Info
Describe the bug I encounter the error Request Entity Too Large when uploading a 1.25 Mb file, when my upload size parameters are set to 200 Mb.
Request Entity Too Large
To Reproduce Steps to reproduce the behavior:
Expected behavior The image should upload.
Image
Logs XBackBone
2024-03-16 20:31:50.977 - Task in queue. Job: FileUpload, Type: Image, Host: Custom image uploader 2024-03-16 20:31:51.069 - Task status: Working 2024-03-16 20:31:51.101 - Upload started. File name: librewolf_LAK5cATxMe.png, File path: C:\Users\accou\Documents\ShareX\Screenshots\2024-03\librewolf_LAK5cATxMe.png 2024-03-16 20:31:53.301 - Error: Error message: The remote server returned an error: (413) Request Entity Too Large. Request URL: https://xbb.soda64.com/upload Status code: (413) Request Entity Too Large Headers: Connection: keep-alive Content-Length: 176 Content-Type: text/html Date: Sat, 16 Mar 2024 17:31:52 GMT Server: nginx Response text: <html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx</center> </body> </html> Stack trace: at System.Net.HttpWebRequest.GetResponse() at ShareX.UploadersLib.Uploader.SendRequestFile(String url, Stream data, String fileName, String fileFormName, Dictionary`2 args, NameValueCollection headers, CookieCollection cookies, HttpMethod method, String contentType, String relatedData) 2024-03-16 20:31:53.301 - Upload failed. Retrying upload. 2024-03-16 20:31:55.451 - Error: Error message: The remote server returned an error: (413) Request Entity Too Large. Request URL: https://xbb.soda64.com/upload Status code: (413) Request Entity Too Large Headers: Connection: keep-alive Content-Length: 176 Content-Type: text/html Date: Sat, 16 Mar 2024 17:31:54 GMT Server: nginx Response text: <html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx</center> </body> </html> Stack trace: at System.Net.HttpWebRequest.GetResponse() at ShareX.UploadersLib.Uploader.SendRequestFile(String url, Stream data, String fileName, String fileFormName, Dictionary`2 args, NameValueCollection headers, CookieCollection cookies, HttpMethod method, String contentType, String relatedData) 2024-03-16 20:31:55.456 - Task failed. File name: librewolf_LAK5cATxMe.png, Errors: Error message: The remote server returned an error: (413) Request Entity Too Large. Request URL: https://xbb.soda64.com/upload Status code: (413) Request Entity Too Large Headers: Connection: keep-alive Content-Length: 176 Content-Type: text/html Date: Sat, 16 Mar 2024 17:31:54 GMT Server: nginx Response text: <html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx</center> </body> </html> Stack trace: at System.Net.HttpWebRequest.GetResponse() at ShareX.UploadersLib.Uploader.SendRequestFile(String url, Stream data, String fileName, String fileFormName, Dictionary`2 args, NameValueCollection headers, CookieCollection cookies, HttpMethod method, String contentType, String relatedData) 2024-03-16 20:31:58.935 - File opened: C:\Users\accou\Documents\ShareX\Logs\ShareX-Log-2024-03.txt
Nginx
server { listen 17486 ssl; listen [::]:17486 ssl; ssl_certificate PATH; ssl_certificate_key PATH; autoindex on; index index.php index.html; root PATH; location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_index index.php; include PATH/.config/nginx/includes/*.conf; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTP_PROXY ""; fastcgi_intercept_errors off; fastcgi_buffer_size 16k; fastcgi_buffers 4 16k; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; } }
The text was updated successfully, but these errors were encountered:
You use nginx. For nginx, you need to set client_max_body_size which defaults to 1MB.
In you case, you want to set it to client_max_body_size 200M; (200MB)
client_max_body_size 200M;
Sorry, something went wrong.
No branches or pull requests
System Info
Describe the bug
I encounter the error
Request Entity Too Large
when uploading a 1.25 Mb file, when my upload size parameters are set to 200 Mb.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The image should upload.
Image
Logs
XBackBone
Nginx
The text was updated successfully, but these errors were encountered: