corillo181 Posted December 31, 2007 Share Posted December 31, 2007 hey, i was done with a website and i was uploading all the files into the remote site. when i starting testing everything worked fine, but the image uploader is not working. i have a long class but i came down to the exact problem but i dont know why is not working. here is the code i'm using for testing. <pre> <?php print_r($_FILES); ?> </pre> <?php move_uploaded_file($_FILES['imgfile']['tmp_name'],'image/'.$_FILES['imgfile']['name']); ?> <form method="post" action="" enctype="multipart/form-data"> <input type="file" name="imgfile" /> <input type="submit" name="submit" value="submit" </form> the file is no been uploaded to the indicated folder. the folder permission is 755. Quote Link to comment https://forums.phpfreaks.com/topic/83874-solved-image-upload-problem/ Share on other sites More sharing options...
graham23s Posted December 31, 2007 Share Posted December 31, 2007 can you chmid the folder to 777 and try? Graham Quote Link to comment https://forums.phpfreaks.com/topic/83874-solved-image-upload-problem/#findComment-426850 Share on other sites More sharing options...
corillo181 Posted December 31, 2007 Author Share Posted December 31, 2007 oh it did work. i had it to 755 becuase it only gives owner permission to upload.. but is a public uploader.. thanks grahem, i have to look mor einto permissions i'm not very familiar with the chimd. Quote Link to comment https://forums.phpfreaks.com/topic/83874-solved-image-upload-problem/#findComment-426855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.