Saving multiple files from a multifle uploader

Hi Bubble community :waving_hand:

I’m trying to do something that I think should be simple - but I’ve been stuck on it for two days :sweat_smile:

Basically, I’m using a multi-file uploader and I want to save each uploaded file as a separate “thing” in my database - yeah seems simple :joy:

Here’s what’s happening:

  • My workflow is creating a loop to save each file individually.

  • However, the result is that the first file is saved correctly, and then all the flies get saved as a list inside a single record instead of separate ones.

I even tried switching to another multi-file uploader plugin, but no luck so far - I’m using this one - ✳️ Multifile Uploader Plugin | Bubble

Workflow’s:

I’m scheduling an API workflow and then run it until index is equal to the count value, but the thing is, the plugin is incrementing the count value during the upload process, I guess that’s way I have 3 db entries, but then I’m unable to split the files :unamused_face:

Note: I’m testing to save just the name and for the tests but I want to save other fields like userID too and then send the files to a N8N automation.

From what I understand, I need to loop through the uploaded files and create one new thing for each - but something isn’t clicking in my setup.

After uploading 2 files, tis is the result:
File manager

Database

If anyone could help me understand what I might be missing (or show me the correct way to loop through files and save them individually), I’d really appreciate it :folded_hands:

Thanks in advance!

Hi,

Thanks for sharing the link!!

The uploader plugin is different from the one I’m using and the tricky part is behind a paywall :slight_smile: (… and I totally understand that).

If you can share any insight, it will be much appreciated, thanks!