Menu

File_Upload Email Bug

Help
EMAN
2007-02-12
2013-06-03
  • EMAN

    EMAN - 2007-02-12

    Hello there. I have just uploaded the script to a webserver and have everything properly chmoded. There is a slight problem when receiving an email with a link to an uploaded file, it looks like this:

    http://files/myfilehere.jpg

    As you can see, it doesn't provide the domain name but instead just has "files/". So of course the link to the uploaded image does not work.

    I am not using a MySQL databas and everything was uploaded correctly with the proper directory format and permissions.

    Could anyone please help out with this issue? Thanks in advance.

    -Eman

     
    • TNTEverett

      TNTEverett - 2007-02-12

      It's this line in the process.php file that rarely ever works. 
      $where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));

      You can change it to somthing like this.
      $where_form_is="http://www.yoururl.com/yourformsfolder/"));

      Basically everything that should appear before "files/filename". 

      If you move the form location obviously you would have to change this manually to match the new location. 

       
    • EMAN

      EMAN - 2007-02-12

      Thanks for the help but this fix would  become quite anoying each form that I would generate since I would need to edit the path each time for each form. Is there a way to actually fix it so it knows where it's located?

      Thanks.

       

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.