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

implement out file storage #1

Closed
felixge opened this issue Mar 18, 2013 · 1 comment
Closed

implement out file storage #1

felixge opened this issue Mar 18, 2013 · 1 comment

Comments

@felixge
Copy link
Contributor

felixge commented Mar 18, 2013

We need a way to locally store files, which may be coming in as partial chunks. These chunks may overlap, which must cause no problems if the overlapping parts hold the same data.

My idea: For the first request create a file id, then create tus_data/<fileId> and tus_data/<fileId>.log. The first file has the full size of the expected is empty, and gets filled as data comes in. The second file is an append-only log that lists all chunks of the file that have been received. The format for this could be new-line separated JSON.

@felixge
Copy link
Contributor Author

felixge commented Mar 25, 2013

Done.

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

No branches or pull requests

1 participant