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

File Storage: the upload flow #3

Open
douglasmiranda opened this issue Feb 11, 2017 · 1 comment
Open

File Storage: the upload flow #3

douglasmiranda opened this issue Feb 11, 2017 · 1 comment

Comments

@douglasmiranda
Copy link
Owner

douglasmiranda commented Feb 11, 2017

I'm thinking about the flow when uploading, specially when the upload is chunked.

The Django's default file storage, if you didn't change it, is django.core.files.storage.FileSystemStorage.

And it makes sense, because when I'm using chunked upload, I can combine the chunks very fast. Otherwise, if I'm uploading, even the chunks to amazonS3, I have to download them all to combine them in to the final file. (If I'm not missing something that's the behaviour, right?)

So it seems to me that I have to provide something like a FU_FINAL_FILE_STORAGE setting, so you can set the storage for your final file to be stored, (your media files server, S3 mostly, I think).

And always(?) store the chunks with django.core.files.storage.FileSystemStorage, since they are all temporary files.

I'm gonna investigate this issue, if someone has something to offer, please share. =]

@douglasmiranda
Copy link
Owner Author

Related: #2

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