Hi, I am using Sourceforge to upload items via a form. I would like to change where the files are being stored. I have been able to change the path in the email sent to the admin, but unable to change where the program is actually send the files...could someone offer advice on this? Email me directly at support@ats-dothan.com and I can share the global, process, and form code with you.
Thanks....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Find this line:
copy($HTTP_POST_FILES['FileName']['tmp_name'], "files/".$image_part);
Change the "files/" part to your new path. This is a relative path (relative to your form location).
If your form is in
forms/use/formname/
the default file location is
forms/use/formname/files
If you want to store files in a folder outside of the phpFormGen path, change the "files/" to somthing like this
"../../../files/"
The folder has to exist first, and be writable.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am using Sourceforge to upload items via a form. I would like to change where the files are being stored. I have been able to change the path in the email sent to the admin, but unable to change where the program is actually send the files...could someone offer advice on this? Email me directly at support@ats-dothan.com and I can share the global, process, and form code with you.
Thanks....
Simple modification to the process.php file.
Find this line:
copy($HTTP_POST_FILES['FileName']['tmp_name'], "files/".$image_part);
Change the "files/" part to your new path. This is a relative path (relative to your form location).
If your form is in
forms/use/formname/
the default file location is
forms/use/formname/files
If you want to store files in a folder outside of the phpFormGen path, change the "files/" to somthing like this
"../../../files/"
The folder has to exist first, and be writable.
Did my suggestion work for you?