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
2 reactions

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
tried vercel and replit, will try my own cluster. Localhost I recall having issues too. checking that again before the mutation of changes I made
1 reply
0 recast
1 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
localhost: Uncaught (in promise) DOMException: Clipboard write was blocked due to lack of user activation. and nothing in the server logs. oh how I love it :D
1 reply
0 recast
1 reaction

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
Yes, browser wants to be 100% sure a copy to clipboard happens in direct response to user interaction
1 reply
0 recast
1 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
i don't even know what that means I just want to submit a html form
2 replies
0 recast
1 reaction

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
Sounds like something somewhere is calling `navigator.clipboard.writeText()`? 🤷🏻‍♂️ https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText
1 reply
0 recast
0 reaction

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
yeah I have legit no idea what's going on. JavaScript frameworks are more pray this works then know it will which is sad
0 reply
0 recast
1 reaction