[Feature Request] Replace mg_http_upload by TUS #3168
Replies: 3 comments
-
Your feature request is not a Mongoose issue, please do not open an issue to request a feature, particularly when there is a place for feature requests. Moved there |
Beta Was this translation helpful? Give feedback.
-
Mongoose is embedded oriented, microcontrollers, not server oriented. It is not meant to be a file transfer engine, it just needs to be able to support a file transfer that can provide an OTA firmware upload. Said that, |
Beta Was this translation helpful? Give feedback.
-
I you have a commercial application for this, please contact Support to discuss your use case and licensing. Thank you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Thank you for maintaining this awesome library, I have a feature request regarding uploading files greater than
MG_MAX_RECV_SIZE
bytes.Request
Currently for uploading big files, mongoose suggests using mg_http_upload function, which is very limited:
CORS
necessary to upload files from webpages hosted in a different host.MG_MAX_RECV_SIZE
to know the maximum chunk size, neither theoffset
in case he lost track of it.TUS
A more standard way for uploading big files is using TUS - Open Protocol for Resumable File Uploads, which is currently a very adopted standard for upload big files in chunks, it uses headers instead of query variables.
References:
Beta Was this translation helpful? Give feedback.
All reactions