Content pfp
Content
@
0 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
Anyone debugged "Error: Request Entity Too Large FUNCTION_PAYLOAD_TOO_LARGE" in Remix or Vite.js before? not sure how to properly accept > 3MB file uploads. using <Form method="post" encType="multipart/form-data" <input type="file" id="image" name="image" accept="image/*" required /> </Form> and then on the action (POST) handle it using @mjackson/form-data-parser but when calling that endpoint with either the default formData Handler or form-data-parser running into the request entity too large error for anything >= 3MB
5 replies
0 recast
4 reactions

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
What host are you using? Might be a limitation of the serverless function provider
1 reply
0 recast
3 reactions

Leeward Bound pfp
Leeward Bound
@leewardbound
flashback to my remarks on the importance of using a mature web framework and how all of javascript ecosystem is trash 😇
1 reply
0 recast
2 reactions

Kyle Mathews pfp
Kyle Mathews
@kam
This looks like an error from the function host. Most have sharp limits on free tier uploads
1 reply
0 recast
1 reaction

Steve pfp
Steve
@stevedylandev.eth
I know with Next they have a framework limit of 4mb that can be passed through API routes, wouldn’t surprise me if Remix had something similar since they too have hosting. I’ve worked around it by creating a temporary API key and uploading directly via the client instead of an API route https://pinata.cloud/blog/how-to-upload-to-ipfs-from-the-frontend-with-signed-jwts/
1 reply
0 recast
0 reaction

Vladyslav Dalechyn pfp
Vladyslav Dalechyn
@dalechyn.eth
i remember I had this exact issue in a hackathon and spent 4 hours trying to fix it, but that was due to nginx reverse proxy
0 reply
0 recast
0 reaction