Hello
I have a field of upload of several media formats: audio, video and image.
I know how to create the file name in a custom way, but I can not generate the extensions (.jpeg, .mp3, .mp4) according to what is sent.
When saving the file is only with the name without the extension
I understand, but ...
If I save this mode Ex: {var: FN.file.jpeg}
When I upload an .mp3 file at the time of saving, it will save as .jpeg
What I want is to customize the file name, this I know how to do, and save according to the file extension.
No, you literally write the word "extension". And replace FN with the name of your file upload action
Hello, healyhatman, rafaelscouto,
Sorry for intrusion, but I have one question regarding the same topic:
​
This is the working code I sucesfully implemented for file uploads:
{data:Name}_{data:Surname}_{var:upload3.file.name}.{var:upload3.file.extension}
​
Now I need to do this for
Repeater file uploads, where Fieldname for the field "Name" would be Person[{var:area_repeater38.key}][Name]
​
Any suggestions?
Honestly given the way the file upload action currently works, I can't imagine how to go about doing that.
but it is not😟 working. the result is like this - if the filename would be photo.jpg, then uploaded filename is __photo.jpg where 2 underscores are the underscores in the code between {data:Name}_{data:Surname}_{var:upload3.file.name}.{var:upload3.file.extension}
Uh huh like I said I don't know how to do it.
Nope. Asked the dev about it, I'll let you know.
Thank you very much, solved my problem.
Hello,
​
The repeater got some updates and the feature in question should work fine with the next update!
​
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.