Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunked upload #7

Open
jkufner opened this issue Aug 9, 2016 · 2 comments
Open

Chunked upload #7

jkufner opened this issue Aug 9, 2016 · 2 comments

Comments

@jkufner
Copy link

jkufner commented Aug 9, 2016

There are two reasons for uploading a file in chunks:

  1. File upload may get interrupted so it is nice to continue when it ended
  2. File upload size is often limited to few megabytes so this would avoid this limitation and would work for any file size (videos).

Idea is to send file in chunks of some reasonable size, one chunk per http request. Once all chunks are transfered, the completed file is renamed to original name.

Basically the one thing to add is offset and length of the chunk and seek before writing. A hash of the whole file would be nice to check to be sure no chunk is missing.

@jkufner
Copy link
Author

jkufner commented Aug 9, 2016

See also PhotoBackup/client-android#46

@Zegnat
Copy link
Contributor

Zegnat commented Aug 9, 2016

If this becomes part of the spec, I would work on that for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants