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

Support for multi-file upload? #16

Open
rbrecheisen opened this issue Jun 3, 2021 · 1 comment
Open

Support for multi-file upload? #16

rbrecheisen opened this issue Jun 3, 2021 · 1 comment

Comments

@rbrecheisen
Copy link

Hi, I managed to get the single file upload working. Works like a charm! Very nice :)

I was just wondering whether it would be possible to upload multiple files simultaneously? This would be quite important for my use case since I have potentially thousands of files to process. I could also ZIP them and upload that but I'm not sure how blocking the unzip process would be. Can that be done "natively" in NGINX or do I need to do that in Django itself?

Hope you have some tips!

@vsoch
Copy link
Owner

vsoch commented Jun 3, 2021

hey @rbrecheisen ! So there is no reason you couldn't try running the upload script in parallel (and that could be done within the script with multiprocessing or something as simple as the parallel tool on the command line). But that upload process would be limited by the server itself. If you have a small number of files maybe that's reasonable, but otherwise you probably want to consider some kind of storage service alongside Django that has a custom upload API. For example, you could generate signed URLs to upload to Google Cloud Storage. or spin up another container like Minio and use their S3 compatible multi part API. This is actually what I did for Singularity Registry Server here is the minio file.

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