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

Upload method is not dynamic #615

Open
congthanhnguyenOL opened this issue Dec 7, 2023 · 0 comments
Open

Upload method is not dynamic #615

congthanhnguyenOL opened this issue Dec 7, 2023 · 0 comments

Comments

@congthanhnguyenOL
Copy link

Hi team, thanks for building and maintaining this awesome library.

I am facing a challenge, which is that I cannot dynamically configure the uploadMethod, since it only accepts strings, not functions.

My use-case is that I have to dynamically decide if I can upload a file to S3 (yes if I can obtain the pre-signed URLs, no elsewise), if not I fallback to uploading to another server. The struggle is that S3 only allow PUT requests, meanwhile the other server only accept POST requests, thus the need for configuring uploadMethod dynamically.

Can it be done? Thanks!

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

1 participant