Skip to content

File Storage: the upload flow #3

@douglasmiranda

Description

@douglasmiranda

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. =]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions