• 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: Submission ID in upload file name

Submission ID in upload file name 4 years 4 months ago #40847

How can I have a submission ID in uploaded filename. I am using File Upload field and can configure filename using 'prefix' attribute. But somehow it is not taking $SubmissionId variable.
The administrator has disabled public write access.

Submission ID in upload file name 4 years 3 months ago #40860

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

This is because at that point your form wasn't yet submitted, thus no submission ID. Having it included would require that after submit, after the submission is saved in your database and the submission ID is generated, to locate the uploaded file, change its name, then change its database reference as well.

A simpler approach would be to use a custom unique ID instead while also having it saved in a hidden field from your form.
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!