Return 413 error on upload
Opened this issue · 0 comments
System Info
- PHP Version: 8.1.2
- XBackBone Version: 3.6.1
- Webserver: [Apache/Nginx/...] Nginx
- Database backend: [SQLite/Mysql/...] Mysql
Describe the bug
If I upload an image, in my case a .jpg file from ShareX, I get a Upload error. I also have changed the upload size and memory of php to 25M post_max_size, 25M upload_max_filesize and 2048M max memory usage.
To Reproduce
Steps to reproduce the behavior:
I can't describe the steps to reproduce but hope that the error message is enough.
Expected behavior
The image is successfully uploaded to the server
Screenshots
The following error message appears and the image is not on the server.
Logs
Error message:
The remote server returned an error: (413) Payload Too Large.
Request URL:
https://cdn.dergrosehd.de/upload
Status code:
(413) Payload Too Large
Headers:
Transfer-Encoding: chunked
Connection: keep-alive
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v3?s=fUi2Q7Vrew5mioQMXHtbZ6FcUyBE5G%2BCsiPRgB5X7ZLrlICQ6DkvJlKnjHeweiwSnx27%2F6jy4q%2FqAjfGWQjK2VMvYjyNsxi1AKTz945hoKCUhuRrnqJJoAu2U%2F%2BLE3MTrLuUVDYqN%2BTDD2sZivb5Vg%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
CF-RAY: 7a2ea90f7cfa35ee-FRA
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
Content-Type: text/html; charset=utf-8
Date: Sun, 05 Mar 2023 01:42:06 GMT
Server: cloudflare
Response text:
<title>413 Request Entity Too Large</title>413 Request Entity Too Large
nginx
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)