• 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: Help with upload field

Help with upload field 15 years 5 months ago #9113

  • NRyan115
  • NRyan115's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hello,

On one of my websites I have a contact form that includes an image upload field. The form works fine and I have been using it for almost a year now.

Recently, a visitor uploaded a picture and apparently the picture's name had an apostrophe in it, for example: "Mom's Picture.jpg".

Normally RSForm will add a random key in the picture name so that users do not overwrite each other's pictures. When it came to the apostrophe RSform put an escape slash in front of the apostrophe "123456789Mom\'s Picture.jpg"

The real problem is that my automatic server backup program tries to make a backup of the upload folder and gets stuck because the escape slash is being read as a change of directory. Backup_Folder\123456789Mom\'s Picture.jpg

This as I said is causing my backup to get stuck and fail. What can I do to prevent this? Is there a way to ensure that image names do not contain slashes or characters that would cause an escape slash to be inserter by rsform? Obviously I have to allow slashed in the field because the upload box usually get filled with the user's path "C:\Documents and Settings\John Smith\My Documents\My Pictures\Picture.jpg" and as you can see the path contains slashes.

I dont know what to do but this situation has basically caused issues with my backup server. The program basically loops and uses resources because of this. Any ideas?
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!