Closed tahirmahmudzade closed 2 weeks ago
I am not sure to understand what is happening on your side, I deployed the nuxthub starter and it works with an image of 7MB on the Workers free plan:
https://github.com/user-attachments/assets/f4332724-b890-45cf-a245-2f50343f5af4
It also works when uploading from the NuxtHub admin:
https://github.com/user-attachments/assets/0c0cff06-be63-48b4-85b2-3bced9d99aed
I am not sure to understand what is happening on your side, I deployed the nuxthub starter and it works with an image of 7MB on the Workers free plan:
CleanShot.2024-11-04.at.17.41.30.mp4 It also works when uploading from the NuxtHub admin:
CleanShot.2024-11-04.at.17.43.03.mp4
thanks a lot for your attention. I'm not sure why but it was only a problem in local dev nuxt dev
. I was able to upload images even more than 5mb on my production website, but i was getting 413 Payload Too Large
specifically on my dev server. After redeployment it all went back to normal. I'm closing this issue as my issue was resolved but still not sure what the problem was.
Describe the bug I’m encountering a 413 Payload Too Large error when attempting to upload images larger than 2MB in a Nuxt project using NuxtHub, deployed via Cloudflare. This issue persists even though Cloudflare’s free tier supposedly supports larger uploads to R2 storage (up to 100 MB via API). Additionally, I have configured the requestSizeLimiter in Nuxt Security with limits far above 2MB, and even turned it off completely as a troubleshooting step, but the error persists.
Steps to reproduce Steps to reproduce the behavior:
Expected behavior The image upload should succeed for files up to Cloudflare’s free-tier limit (up to 100 MB via API for R2). The configuration in Nuxt Security should allow higher upload limits, so files up to the specified limits should upload without errors.
Current Configuration
To troubleshoot, I turned off the request size limiter entirely, but the error persisted with the same 413 Payload Too Large response
This is the part of the api that i'm uploading the files
Questions