Menu

File upload error

Help
Stefan
2003-04-27
2003-04-29
  • Stefan

    Stefan - 2003-04-27

    There seems to be an error in the flile upload.
    The script works the first time when you upload a.jpg but when you try to use the form for the second time to upload b.jpg it says "The file, b.jpg, was not uploaded!"

    I removed the error check for the fileupload and then it says "Warning: copy() [function.copy]: Unable to access in /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php on line 14

    Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php:14) in /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php on line 25"

    Any ideas on that?

     
    • Musawir Ali

      Musawir Ali - 2003-04-29

      you can't just take out code, if its placed there then there must be a valid reason for it. So its advised that you don't touch the code but rather look and check the installation issues such as file permissions, etc. Have you tried creating the form on the demo site? See if it messes up there too, otherwise its probably a problem with your installation. Also, when you say that it worked once, but it doesn't work the second time, that doesn't seem logical. The code doesn't automagically change when someone fills out a form. I'm thinking that file upload his being handled by some specific user account in PHP, and that messes up some of the permissions.
      The demo site is located at: http://phpformgen.sourceforge.net/phpform

       

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.