Skip to content
New issue

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

Return 413 error on upload #521

Open
SJ-Tom opened this issue Mar 5, 2023 · 0 comments
Open

Return 413 error on upload #521

SJ-Tom opened this issue Mar 5, 2023 · 0 comments

Comments

@SJ-Tom
Copy link

SJ-Tom commented Mar 5, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant