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.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Uppy Multiple Files
-
- 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
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.
https://uppy.io/docs/xhr-upload/
But I am not quite sure how to implement this.
-
- 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
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...
-
- 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
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.