Hello,
I have a file upload action on my form. Works great except that after the file is uploaded, the file name is changed. For example, a file I uploaded is named J70130.pdf. After it is uploaded, the name is 20140919140304_J70130.pdf. Is there a way to upload the file with no name change?
Thanks.
This is done by default for security reasons, but we can add a new feature to control this by the next update!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi chriso0258,
The string is actually a date-time string added to prevent uploads with the same name e.g. my-image.png conflicting with each other.
You could remove or change it with PHP in a Custom Code action if it's a current problem.
Bob
The latest update released yesterday has a new setting to control the file name, please check it!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks for your reply Max. I am using CF v4 and upgraded to 4.0.6. I don't see where there has been a change. Is the update only for v5?
Thanks.
Yes, the update I mentioned was the v5 one, but v4 had a setting to change this already, no ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max,
I could not find such a setting in v4. In the action settings there is:
Enabled
fields configuration
upload path
Min/Max file size
Several text boxes for various errors
Safe file name (This will remove any special characters from the file name).
In the Advanced setting there is just "Array field".
Also, nothing in the Basic Setting under Preview.
Hi chriso0258,
Sorry, in my version here it says use {file_name} to to use the file name alone. As the name suggests {form_name} will use the name of the form :-(
Bob