Jump to content

Recommended Posts

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

        )

 

)

 

 

----------------------------------------------------

Link to comment
https://forums.phpfreaks.com/topic/237652-lampp-permissions-ah/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.