-
Notifications
You must be signed in to change notification settings - Fork 32
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
Uploading files to remote servers #89
Comments
Hi @yigitsoy, nice to hear you like the tool! About uploading directly to a remote file hosting server (e.g. S3): That being said, I would be really open to PR's trying to address this. If you want to try, the best way would be to continue on the Ps. I did not read the mentioned dev.to article all the way, but would that support uploading large files as small chunks? What logic would be used to merge the chunks into a big files at the S3 side? About server callback accepting the type of the file: About keeping the hierarchy of the selected files: [1] It would also help with integration with services like Heroku (Issue 16) |
Hi, Thanks for the prompt response.
No worries, I appreciate your contribution already. Looking into your description of how dash-uploader works and potential problems with chunks in the linked issue, this seems (at least to me) harder than what I imagined actually.
I will try to play around it myself first then, despite lacking frontend experience.
I though the aws sdk was handling the streaming of the file (probably in chunks?) to s3 directly and s3 server must be able to combine them. But I assume the sdk is taking the entire file blob and itself sending in chunks.
Yeah, right, I missed that, that would be sufficient actually.
Yes, I know, just wanted to put into my wish list :)
|
Thanks for developing this great tool, which is much more helpful than the vanilla upload of dash.
I am trying to upload files from users's local machines to remote file hosting servers (e.g. s3). I think this would be a great feature to the du where we can bypass any server side processing and directly send the files from the frontend.
How I imagine this is
A great example is here: https://dev.to/kitsunekyo/upload-to-aws-s3-directly-from-the-browser-js-aws-sdk-v3-1opk
It would be also great if the server callback can also accepts the type of the file and decides whether to reject it or generate the URL.
Further improvement would be to keep the hierarchy of the selected files while requesting URL, so that the structure is maintained in the remote file hosting servers.
The text was updated successfully, but these errors were encountered: