LocalCan / LocalCanApp

#1 Ngrok alternative. Without subscription. With .local domains and top-rated UX.
27 stars 0 forks source link

Maximum body size limit of proxy #2

Closed mrdanielm closed 2 months ago

mrdanielm commented 4 months ago

Description

Is there a way to customise the maximum body size of the proxy? I'm getting a 413 when trying to test an image upload

Jaarson commented 3 months ago

@mrdanielm What is the image size? Is the error coming from the LocalCan proxy or from your app?

mrdanielm commented 2 months ago

@Jaarson Image is just over 1MB. So to explain my setup my actual domain is on Cloudflare, if I create a custom domain pointing to my API and route traffic through that all is fine except when I attempt to upload an image and I get that error which appears to be at the proxy level because it never actually hits my API.

I can successfully upload the same image both if testing locally (using localhost) and testing on a staging env again through CloudFlare.

I should also note if I create a CF based non-persistent URL in LocalCan, image upload works fine.

Jaarson commented 2 months ago

@mrdanielm thanks for waiting! Great news — LocalCan doesn't have any upload size limits anymore. Now, you can set and enforce any file size limits you need in your application.

Hope this helps and makes your development process smoother!

mrdanielm commented 2 months ago

Thank you for the prompt fix!