Page 1 of 1

Uppy Multiple Files

Posted: Sat Sep 02, 2023 6:46 am
by vario
I'd like to have a PHP procedure called after upload of two files.
I can upload two files with Uppy easily enough but it calls the procedure after each file rather than after both have uploaded. Can anyone help me with this?

Neil.

Re: Uppy Multiple Files

Posted: Wed Sep 06, 2023 9:34 am
by kev1n
This could probably be achieved with the "bundle" option as described here:

https://uppy.io/docs/xhr-upload/

But I am not quite sure how to implement this.

Re: Uppy Multiple Files

Posted: Fri Sep 08, 2023 7:56 am
by vario
The bundle option is already set to true in nuBuilder (it's in the HTML tab of an Uppy file object). I will try to investigate but will probably just adapt the procedure to cope...

Re: Uppy Multiple Files

Posted: Fri Sep 08, 2023 8:17 am
by kev1n
Also note this:
When bundle is set to true:

formData must also be set to true.
Uppy won’t be able to bundle remote files (such as Google Drive) and will throw an error in this case.
Only global uppy metadata is sent to the endpoint. Individual per-file metadata is ignored.