Services Plugins FAQs

AWS file uploader not listing multiple file urls in database

Hi,
I have setup the plugin and the AWS as per the instructions and I can see that the files can be loaded into S3 from Bubble App.
In my use-case I have created a table called Bills where the file when uploaded goes to S3 and the link gets stored in the database. This logic works fine if a single file is uploaded.

However when I upload multiple files, the files go to S3 but the urls of all the files are not getting stored in the database. Instead only one random files url is getting stored in database
Is this a bug or am I missing something?
Big thanks
Satish

Hello, @satish.sreenivasan
Thanks for reaching out.

This behavior of the plugin may be caused by the way you save the files.
I assume that for saving these files in your DB, you still using settings for saving a single file.
Here is an example of the settings for saving a single file:

However, in case you want to save many files, you should use other states for that ( List of information):

Please compare your settings with my screenshot and make the required changes.
If it still doesn’t work for you, please share with me your current settings for saving your files.

Best regards,

Hi @Ecaterina Thanks for quick response as always.
Your suggestion of setting up as list of urls worked, multiple file urls are now reflecting in the database.
However the “Created by” is not getting populated for all the files in the database, am I missing something here?

Hey, @satish.sreenivasan
Thanks for the question.

If you are speaking about the “Created by” field, which is the default for Bubble, it is recorded automatically in the DB, however, you need to ensure that your user is logged in to your app.

In my case, I wasn’t logged as any user, thus this field is empty.

Please try it and let me know about your result.
Best regards,