starfederation / datastar

A real-time hypermedia framework.
https://data-star.dev/
MIT License
698 stars 37 forks source link

File Upload example failing when sending bigger files #207

Open rael346 opened 2 weeks ago

rael346 commented 2 weeks ago

On the File Upload Example, when I tried to upload a file bigger than 4MB (the limit set in the backend) no error appeared on the frontend and the browser console looks like this

image

The backend code implies that it will send an error message back to the user but for some reason the sse format is wrong based on the error message above.

delaneyj commented 2 weeks ago

That example might be ina bad state, thanks for bringing it up. I did put severe limits on the upload to stop bad actors but the UI should reflect that. Thank you for letting me know!