Menu

error when I send the data.... :-(

Help
Augusta
2009-05-06
2013-06-03
  • Augusta

    Augusta - 2009-05-06

    Hi, I hope you can help me!
    I created a form with your beautiful tool, I choose the database option.
    But when I send the form I got these errors:

    "Warning: move_uploaded_file(./files/file_4_12380206052009.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /public_html/mysite/processor.php on line 10

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpvdV9iF' to './files/file_4_12380206052009.jpg' in /public_html/mysite/processor.php on line 10
    File photo1.jpg was not uploaded."

    Can you please explain me?
    the line 10 of processor.php is:
    if(!move_uploaded_file($_FILES['field_4']['tmp_name'], "./files/".$field_4_filename)){

    (I also tried to make a config.inc.php file (it wasn't in the folder but I see in the processor.php this "include("config.inc.php");" so I created with my db data).

    Please, can you help me to solve this problem?
    thank you so much!
    ciao :-)
    Augusta

     
    • TNTEverett

      TNTEverett - 2009-05-09

      The failure to move files is likely a folder permissions error.  Make sure the files folder has permissions of 777.

       

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.