Skip to content

Inserting Multiple File Names in a Database

Original guide · All levels

You already know HOW TO UPLOAD MULTIPLE FILES TO YOUR SERVER so now we are going to show you how to insert their names or URLs to a database. Open the Server Connect panel: Select your server action,

You already know HOW TO UPLOAD MULTIPLE FILES TO YOUR SERVER so now we are going to show you how to insert their names or URLs to a database.

Open the Server Connect panel:

Select your server action, which uploads multiple files to the server and right click steps:

Section titled “Select your server action, which uploads multiple files to the server and right click steps:”

Open Database Actions and add Database Connection:

Section titled “Open Database Actions and add Database Connection:”

Make sure the database connection step is before the file upload step. If it is not, just grab it with your mouse and drag it in the first place in the action steps.
Then define your db connection or select one if you have already defined it for this site:

Then click the dynamic data picker, to select an expression for the repeat step:

Section titled “Then click the dynamic data picker, to select an expression for the repeat step:”

Here, you should select the File Upload step. This means that the steps inside the repeat will be executed as many times as files are uploaded by the upload step:

Open Database Actions and Add Database Insert:

Section titled “Open Database Actions and Add Database Insert:”

And select the table, where you want to insert the uploaded files’ names or URLs:

Section titled “And select the table, where you want to insert the uploaded files’ names or URLs:”

Double click the value field and click the dynamic data picker icon:

Section titled “Double click the value field and click the dynamic data picker icon:”

Here, select either the name of the file, or its URL returned under the Repeat. We prefer to store just the name of the file, not the whole URL to it: