Skip to content

Upload method is not dynamic #615

Open
@congthanhnguyenOL

Description

@congthanhnguyenOL

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions