Skip to content

Example of uploadMultiple usage #469

@divan

Description

@divan

Upploader v2 introduced support for multiple files upload.
However, there is no example or docs on how to use this feature.

Docs say custom uploader needed to be written, but it's not clear from the custom uploader interface, how to handle multiple files upload. After looking into the source code, it becomes clear that there is a new interfaces/function needed to be implemented - uploadMultiple. I've tried to implement it, and somehow it doesn't work – latest Uppload v2 still tries to use upload uploader instead of uploadMultiple.

I tried to remove upload version (for single files) and upload multiple files – and that leads to the error message "no uploader".

Also, I'm a bit confused by interface of uploadMultiple – it returns a single String. Is it supposed to be a URL of the first or last image? Would be nice to return an array of urls, so they can be displayed as multiple previews. (Single URL also works for me, but that's confusing part too).

Would be awesome to see some example of using multiple upload. I think docs makes it pretty clear that multiple upload is going to be limited – that's ok. Just a bit more information/help on how to make an uploader for that feature.

Thanks for a great tool!

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