Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Uppy Multiple Files

Questions related to using nuBuilder Forte.
Post Reply
vario
Posts: 154
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 2 times
Been thanked: 1 time

Uppy Multiple Files

Unread post 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.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Uppy Multiple Files

Unread post 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.
vario
Posts: 154
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 2 times
Been thanked: 1 time

Re: Uppy Multiple Files

Unread post 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...
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Uppy Multiple Files

Unread post 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.
Post Reply