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

Split file when upload #82

Open
SinonCute opened this issue Apr 24, 2023 · 3 comments
Open

Split file when upload #82

SinonCute opened this issue Apr 24, 2023 · 3 comments

Comments

@SinonCute
Copy link

Cloudflare have limited free user upload is 100MB, the file is over 100MB it will deny, we can workaround by splitting the file into 90MB part and upload, server-side will combine it, not be risk by using the 'dns-only'

@UnlimitedBytes
Copy link

This will require a massive rework of the frontend as well as a big rework on the backend.
The file needs to be splittet in the frontend via JavaScript then get transmitted in multiple requests to the backend which needs to match all those requests to the same file so the backend then can upload the parts further splittet to discord. It's necessary to use multiple requests here as each request can not hit the 100 mb limit or it gets blocked.

@SinonCute
Copy link
Author

I don’t know what you mean can’t hit 100 MB when the site upload did not have limit so it easy to hit limit

@UnlimitedBytes
Copy link

A good idea here would be to shift the entire splitting to the frontend and remove it entirely from the backend.
So the frontend will split the files into 25 MB chunks which are directly tunneled to discord without needing the backend to further split it to fit discords limitations.

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