• 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: Change images folder

Change images folder 12 years 10 months ago #17639

  • Mr_Willy
  • Mr_Willy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello!
Is there any way to change source folder? I have a lot of uploaded images and if not I find myself reuploading same images that are already in another folder. I can't find how to do this if possible.

Thank you!
The administrator has disabled public write access.

Re: Change images folder 12 years 10 months ago #17815

Hello,

I don't understand your question completly.
In RSForm!Pro with the file upload function you can choice where the files need to be saved.
Regards
Wilco Alsemgeest

Please note: my help is not official customer support. To receive your support, submit a ticket by clicking www.rsjoomla.com/my-support-tickets.html
The administrator has disabled public write access.

Re: Change images folder 12 years 9 months ago #18031

  • robert49
  • robert49's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
You can use this code to achieve your goal.

put this code in the scripts $post section if you use the submissions option.

It only works for new uploads though.
$files = JRequest::get('files');
$dir = "name/of/dir/";
 
$file1 = $files['form']['name']['name_of_upload_box'];
$files['form']['name']['name_of_upload_box'] = $dir.$file1;
Use this code in combination with inserting other data to a separate MySQL table in the scripts $post section :).
$files = JRequest::get('files');
$dir = "name/of/dir/";
 
$file = $files['form']['name']['name_of_upload_box'];
JFile::upload($files['form']['tmp_name']['name_of_upload_box'],$dir.$file);
exit;
Last Edit: 12 years 9 months ago by robert49.
The administrator has disabled public write access.
The following user(s) said Thank You: mdmpsyd
  • 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!