• 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: Sanitize uploaded file names

Sanitize uploaded file names 10 years 8 months ago #28440

  • it7admin
  • it7admin's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hello,

We are great fans of RSForm Pro, it fits nearly every job.
However we are having recurrent problems with "losing" uploaded files, and I suspect this is due to problems with the original file names containing spaces, special characters, single quotes etc.
The link to the file is included in the admin email, and is visible in the backend, but the file itself is not on the file system : this is happening to about 5% of our submissions.

Can you please tell me how we can "sanitize" the uploaded file names so as to resolve this problem ?

This would also allow us to automatically interface the uploaded files with other systems.

Best regards,

Steve
Last Edit: 10 years 8 months ago by it7admin. Reason: typo
The administrator has disabled public write access.

Sanitize uploaded file names 10 years 3 months ago #30172

  • DiGwork
  • DiGwork's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
I agree this is an important point. I found this resource but still a little puzzled how exactly to implement it:

File prefix: to prevent file replacements in the upload folder, RSForm!Pro adds a random prefix to the uploaded file names. If you specify a prefix - this will be added instead. Note that you can also use a PHP code to generate the prefix dynamically. This should be specified in between the //<code> and //</code>, example:
//<code>
return $_POST;
//</code>
Last Edit: 10 years 3 months ago by DiGwork.
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!