HTML5 File Upload Support Product Page

Answered

Is there a way to upload to more than one folder

Asked 08 Jun 2017 15:02:11
1
has this question
08 Jun 2017 15:02:11 Keith Mears posted:
I have a number of Users in a table and I want each to have their own upload folder, I do this in the HTML editor by uploading to a folder and then adding a further extension using the "User ID" from the database. Can I do this in the HTML5 Uploader?

Regards

Keith

Replies

Replied 08 Jun 2017 15:10:02
08 Jun 2017 15:10:02 Teodor Kuduschiev replied:
Hello Keith,
Yes, you can have {{dynamic}} values in the path, when uploading files with HTML5 File Upload
Replied 09 Jun 2017 07:10:46
09 Jun 2017 07:10:46 Keith Mears replied:
Hi Teodor, thats great can you point me to a tutorial as I have looked and can't see it?

Regards

Keith
Replied 09 Jun 2017 07:21:56
09 Jun 2017 07:21:56 Teodor Kuduschiev replied:
Well, actually there is no a specific tutorial about this ... just use {{some_value}} in the path, when setting up your path ...
Replied 09 Jun 2017 15:05:38
09 Jun 2017 15:05:38 Keith Mears replied:
Hi Teodor - I am not with this, I assume "some_value" is the binding value that in my case the User ID but how do get that value into the file path? Can you explain further?

Regards

Keith
Replied 09 Jun 2017 15:17:58
09 Jun 2017 15:17:58 Teodor Kuduschiev replied:
{{some_value}} could be ANY value returned any ANY step in your server action.
How exactly do you want to use this id? Where it comes from?
Replied 09 Jun 2017 15:23:02
09 Jun 2017 15:23:02 Keith Mears replied:
Hi Teodor

I want to use the user ID from a database table that is included in the upload form (I am also insert a record in a database as well, the form has the value in a hidden field that is then used in the Upload server Action. What I want to do is upload and image into a common folder and then direct it to a folder that is titled as the User ID (1, 2 , 3 ....)

Hope this makes sense

Keith
Replied 09 Jun 2017 15:33:33
09 Jun 2017 15:33:33 Teodor Kuduschiev replied:
What exactly does this mean:

Quote database table that is included in the upload form


How do you include a database in an upload form?
Replied 09 Jun 2017 15:37:50
09 Jun 2017 15:37:50 Keith Mears replied:
I am not, I am using the form as part of the server connect upload. I need to direct the photo to a folder on the server, the folder on the server relates to the client user ID, I have multiple clients and their associated ID is what I want to use in the upload path, I need to get this from the user ID.

Not easy to explain but hope this helps

Keith
Replied 09 Jun 2017 15:40:03
09 Jun 2017 15:40:03 Teodor Kuduschiev replied:
You just need a query, which filters your users and a repeat step after the query, which uses the query name as a value.
Then just put everything inside this repeat ... and the query bindings will be accessible form there ...
Replied 12 Jun 2017 10:29:06
12 Jun 2017 10:29:06 Keith Mears replied:
Hi Toedor - I am obviously missing something here, all works fine except picking up the user ID from the database source for the path in the repeat. I have set the output as the User ID from the selection that I assume is coming from the query but that is not included in the upload file path. I have images of my settings to see if that help pin point what I am doing wrong but cannot attach them anymore. I can send images to you if you can let me have an address if that will help.

Regards

Keith

Replied 12 Jun 2017 10:36:09
12 Jun 2017 10:36:09 Teodor Kuduschiev replied:
Please send your screenshots to

Reply to this topic