Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To have a mature data module, it is necessary to have a way to exchange big files. Currently CARMIN only allows to exchange whole files, and this isn't a viable solution with big file on HTTP.
I propose to add ways to download and upload files by chunks in CARMIN.
This is pretty sraightforward for the download side with 2 new GET parameters :
offset
andsize
to specify a range of bytes :GET /path/mybigfile.zip?action=content&offset=110000000&size=10000000
For the upload size, this need deeper changes. An upload by chunk is initialized through the
POST /path/mybigfile.zip
with some payload :This only declares a new upload, there zero byte sent. The platform returns an enriched Upload object ;
Then the user sends the chunks one by one on
POST /upload/upload-xxxx
. On every chunk, the platform updates thetransfered
field. On the last chunk, the upload is over and aPath
object representing the new file is returned.This is a draft opened to discussion.