Who8MyFish Posted May 27, 2011 Share Posted May 27, 2011 So I have been taking swings at this issue for like 3 days now and no matter what I try I can't get this to work. All I'm trying to do is create a simple picture upload form. As far as i can tell my form and script work just fine but I'm stuck on these blasted permissions errors. I've added myself to the www-data user group as suggested by another user. LAMPP server, Ubuntu 11.04. This is what happens when uploading... ------------------------------------------------- Warning: move_uploaded_file(uploads/DSC00141.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in /opt/lampp/htdocs/RedRacksDynamic/Manager/postitem2.php on line 6 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phplgVvan' to 'uploads/DSC00141.JPG' in /opt/lampp/htdocs/RedRacksDynamic/Manager/postitem2.php on line 6 There was an error uploading the file, please try again! Array ( [image] => Array ( [name] => DSC00141.JPG [type] => image/jpeg [tmp_name] => /tmp/phplgVvan [error] => 0 => 520824 ) ) ---------------------------------------------------- Quote Link to comment https://forums.phpfreaks.com/topic/237652-lampp-permissions-ah/ Share on other sites More sharing options...
gizmola Posted May 27, 2011 Share Posted May 27, 2011 Looks like your path is relative: 'uploads/DSC00141.JPG'. Use a real path so you're sure that it is trying to write the file where you want it to go. Quote Link to comment https://forums.phpfreaks.com/topic/237652-lampp-permissions-ah/#findComment-1221389 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.