• 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: How to disable rewrite files?

How to disable rewrite files? 12 years 7 months ago #18919

  • Vital000
  • Vital000's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi!

I upload files to the server in the folder uploads and record total field to the table _сontent. But the component may overwrite the file on the server if the uploaded file has the same name. How to check for the existence of a file? How to get a new file name and write to the database? Since _POST contains the initial values ​​of the name. Need to send content to a site with an attached image. Therefore, a image link to the correct entry in the database
$text=$_POST['form']['text'];
$img=$_FILES['form']['name']['img'];
$c='<img class="img_news" src="uploads/img_'.$img.'"/>'.$text.$files;
$_POST['form']['total']=$c;

Thenks.
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!