HTML5 File Upload Support Product Page

Under investigation

Insert not storing updated file name

Reported 18 Jan 2017 00:19:41
has this problem
18 Jan 2017 00:19:41 Brad Lawryk posted:
I have a simple upload form that uploads a file and stores the information in a database.

It does rename the file according to the renaming template I have set up. And it does insert the record in the database like it is suppose to but it stores the original file name in the database.

I can't for the life of me get it to store the renamed file name in the database. If it matters, these are all document files. No images or anything like that. Mostly Word or PDF.


Replied 18 Jan 2017 07:57:51
18 Jan 2017 07:57:51 Teodor Kuduschiev replied:
Hi Brad,
If you are using the {{$}} for the name value, it should store the renamed filename, not the original one.
Please send us a link to your page to and enable the output option for the insert and upload steps.
Replied 18 Jan 2017 17:33:05
18 Jan 2017 17:33:05 Brad Lawryk replied:
I was able to solve this today.

Seems that {guid}{name}{_n}{ext} does not work when adding to a database. It renames the file fine but only writes the original file name to the database.

I changed it to {guid}{name}{ext} and it works fine now.
Replied 18 Jan 2017 17:37:49
18 Jan 2017 17:37:49 Teodor Kuduschiev replied:
Hi Brad,
I will check if there is an issue with the {_n} mask and will let you know.
Replied 18 Jan 2017 17:39:32
18 Jan 2017 17:39:32 Brad Lawryk replied:
Yeah, it seems that way as I can replicate it by putting it back in.

Anyways, with the {guid} in the template it shouldn't really need the {_n} anyways. ;-)
Replied 18 Jan 2017 17:43:34
18 Jan 2017 17:43:34 Teodor Kuduschiev replied:
Actually the {_n} mask is not really needed if the overwrite checkbox is not checked, as the extension automatically puts "_1"..."_99" if the filename is the same.

Reply to this topic