How to server static files from folder & Upload file save on this folder. #450
Replies: 4 comments 1 reply
-
That snippet works for small files only - if you reach GB of data you have to properly stream the data - and really, you kind of always should stream! |
Beta Was this translation helpful? Give feedback.
-
Look at examples/VideoStreamer.js instead - it shows how you can properly stream huge files with minimal backpressure. |
Beta Was this translation helpful? Give feedback.
-
I just published a small library to serve static files based on this VideoStreamer example, you can check it out here https://www.npmjs.com/package/uwebsocket-serve |
Beta Was this translation helpful? Give feedback.
-
serve static is using
|
Beta Was this translation helpful? Give feedback.
-
I am stuck at following problem
My app have 4 api so I don't want to manage another server for this :)
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions