HTML5 File Upload Support Product Page

Creating subfolder with unique ID

Asked 14 Dec 2017 08:21:39
1
has this question
14 Dec 2017 08:21:39 MX Addict posted:
I create a action step uploading multiple files to a subfolder (which is create by identity from insert record). So far this works fine

for example:

/images/{{insert1.identity}}

images/2 (2 is identity from insert record)
images/3 (3 is identity from insert record)




Now I have another form with an extra hidden textfield containing a unique ID

How can I attach this unique ID to create a subfolder with this ID?
I tried this but this doesn't work

/images/{{$_POST.uniqueID}}

Replies

Replied 14 Dec 2017 11:01:35
14 Dec 2017 11:01:35 Teodor Kuduschiev replied:
Hello,
It should be working just fine with POST vars.
How do you generate the uniqueID and how does the hidden field code look?
Replied 14 Dec 2017 11:25:19
14 Dec 2017 11:25:19 MX Addict replied:
Hi Teodor,

I did create a form:

hiddenfield: UniqueID and value 100 ( this will later replaced with request.value)
filefield: bestand[]

import this to globals




When uploading a file:
located in the folder images and not in the folder images/100
uploaded file gets an extra {filename}_1.{jpg} (underscore with number)

What is wrong with these action steps???
Replied 14 Dec 2017 11:31:37
14 Dec 2017 11:31:37 Teodor Kuduschiev replied:
Thanks for the info, nothing looks wrong on your screenshots.
I will check this.
Replied 14 Dec 2017 15:31:23
14 Dec 2017 15:31:23 MX Addict replied:
Hi Teodor,

I create a whole new upload page and now it works fine.



I did remove Database Connection and Database Insert which I didn't need
Replied 14 Dec 2017 15:32:27
14 Dec 2017 15:32:27 Teodor Kuduschiev replied:
I don't think these steps were the issue.
Probably some value somewhere was not well synced or was changed and then not synced again.

Reply to this topic