• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Changing name of uploaded files

Changing name of uploaded files 17 years 10 months ago #930

  • geuxor
  • geuxor's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi, thanks for a great product.
I have noticed that all the files that are uploaded, whether it's a picture a document or pdf, Forme always changes the name of that file and adds a lot of numbres in front of the name. I would like to get rid of these numbers, as I will never upload the same file twice. Could you be so kind to advise where in the code I can do that?? (what function / what variable)
example: 1180821918_AR-PKL-AD.jpg
using Forme 1.0.3

Thanks a lot for your help.
German<br><br>Post edited by: geuxor, at: 2007/06/25 23:01
The administrator has disabled public write access.

Re:Changing name of uploaded files 17 years 9 months ago #1001

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Sure,

edit the file /components/com_forme/forme.php, look for the code
$target_file = time().'_'.$_FILES['form']['name'][$field-&gt;name];

change it to
$target_file = $_FILES['form']['name'][$field-&gt;name];

Save this post somewhere, as you will need to make this change each time a new version comes out probably.
The administrator has disabled public write access.

Re:Changing name of uploaded files 16 years 4 months ago #5964

Where would this code be located in RSForm!Pro?

It would be cool if this could become a parameter/option that could be turned off!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!