Page 1 of 1

Problems with move_uploaded_file(). Help!!

Posted: Mon Feb 09, 2009 11:08 am
by granite
Hey there guys,

I'm having problems uploading files using the function move_uploaded_file(). Take a look:
Warning: move_uploaded_file(./connectors/image/montanhasazuis.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/arcamani/public_html/admin/fckeditor/editor/filemanager/browser/default/figuras.php on line 6

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpVqPGmh' to './connectors/image/montanhasazuis.jpg' in /home/arcamani/public_html/admin/fckeditor/editor/filemanager/browser/default/figuras.php on line 6
While searching for a solution around other forums, I've found some answers pointing to security permissions. Then I changed the CHMOD permission to my figuras.php file. They were 755, then I changed them to 766, but it didn't work. Tried 777, and still, didn't work.

Someone, please help me!

Thank you in advance.

Re: Problems with move_uploaded_file(). Help!!

Posted: Mon Feb 09, 2009 11:32 am
by Ziq
You should change permission to ./connectors/image/ folder.

Re: Problems with move_uploaded_file(). Help!!

Posted: Mon Feb 09, 2009 12:02 pm
by granite
Hah! It worked! :D

Thanks, man!