Menu

Help with file location

Help
ATS
2005-10-25
2013-06-03
  • ATS

    ATS - 2005-10-25

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

     
    • TNTEverett

      TNTEverett - 2005-10-26

      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.

       
    • TNTEverett

      TNTEverett - 2005-10-28

      Did my suggestion work for you?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.