• 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: uploaded file name in php code

uploaded file name in php code 11 years 10 months ago #24086

  • tamerci
  • tamerci's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
how do I get uploaded file name in php code
sample:

$_FILES
return "sample.jpg"
But I want to get "51dd61328a058-sample.jpg" name
The administrator has disabled public write access.

uploaded file name in php code 11 years 10 months ago #24099

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

The final name of the uploaded file is not store in the $_FILES variable.

You can try using a query to get the exact file name from the database. The value of the upload field is found in the following RSForm!Pro table:

#__rsform_submission_values

If you actually want to show the name of the uploaded file in the thank you message, RSForm!Pro generated emails or within the view submissions listed in the frontend area you can use the {your_field_name:filename} placeholder. This placeholder will return the name of the uploaded file as it is saved in the database. More information on this can be found here:

www.rsjoomla.com/support/documentation/v...831-file-upload.html
This is not official customer support. To receive your support, submit a support ticket here.
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!