Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rburgst/test-sveltekit-large-upload

sample sveltekit repo showing a problem with file uploads
https://github.com/rburgst/test-sveltekit-large-upload

Last synced: 2 days ago
JSON representation

sample sveltekit repo showing a problem with file uploads

Awesome Lists containing this project

README

        

# Sample sveltekit app showing file uploading problems

This repo shows a problem with sveltekit adapter-node that causes large file uploads to hang the server.

To reproduce

1. `pnpm install`
2. `pnpm build`
3. `pnpm serve`
4. open the browser at http://localhost:3000/
5. upload an image between 3 and 9 MB, e.g. https://unsplash.com/photos/3wZn6OsNBnM (large resolution)

### Expected

you should see log output in the console of the server stating that the file is being saved to `/tmp/upload.jpg`.

### Actual

console shows nothing and server just sits there hanging. The POST in the browser never completes.