I created a site with Joomla v3. In the page there is a form to upload a file that can be of multiple type (PDF, Word,...)
Once the file is uploaded it is renamed.
The issue is that the rename is not preserving the extension of the file. If i force the file to be named NAME.pdf, I can open it if i receive a .pdf but, of course I can not when I receive a different format.
I would like to know what and where I should insert a string that can adapt to the type of file received
So far in
Data Override on insert I have
"Location:{user:email}.pdf "
I would like to know what I should replace .pdf with.
Onfile upload I have the form "file name provider" where I wonder what I should write.
Ideally I would like to receive everything on the webmail.
Once the file is uploaded it is renamed.
The issue is that the rename is not preserving the extension of the file. If i force the file to be named NAME.pdf, I can open it if i receive a .pdf but, of course I can not when I receive a different format.
I would like to know what and where I should insert a string that can adapt to the type of file received
So far in
Data Override on insert I have
"Location:{user:email}.pdf "
I would like to know what I should replace .pdf with.
Onfile upload I have the form "file name provider" where I wonder what I should write.
Ideally I would like to receive everything on the webmail.
I recommend you use v8 for this, you can choose how the uploaded file is named as shown in the screenshot
v8 requires PHP8 and Joomla 4/5
v8 requires PHP8 and Joomla 4/5
You need to login to be able to post a reply.