• 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: Upload files - relative url

Upload files - relative url 16 years 11 months ago #3066

(re)Hello

When i create an upload field in my forms, i must indicate a local folder (ie : c:\...\uploads) but this value is fully save in database. After when i try to view or download this file it doesn't work... is it possible to modify scripts to use relative url instead of this absolute ?

Thomas
The administrator has disabled public write access.

Re:Upload files - relative url 16 years 4 months ago #5923

  • colette
  • colette's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I would like to remove the proceeding numbers that get added in the file name. How can I do this? If they upload document.doc then I don't want it to end up as 32394802-document.doc

How can I do this?
The administrator has disabled public write access.

Re:Upload files - relative url 16 years 4 weeks ago #7104

  • lewko
  • lewko's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
You might want to think about whether that is a good idea.

By adding pseudo-random digits to the filename, you are ensuring that:

a) You won't have filename clashes if two people upload a different file with the same name e.g. "resume.doc".

b) You reduce the chance of your system being abused by someone who could upload a file (e.g. warez or porn) to your server, and then post a known URL to another site.
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!