Upload image trouble, You don't have permission

Notice: This thread is very old.
frocco
Member | 46
+
0
-

Hello,
I am getting this error.
You don't have permission to access /nette-mvbs/www/pages/ on this server.
I am on windows 7 and have created a folder under www called pages.

I tried changing my path in my code, but I still get the same error.

$file = $values['file'];
                if ($file->isOk()) {

                    //$image = Image::fromFile($values->file);
                    //$image->save('/'.$values->file->name);
                    $values->file->move('images/'.$values->file->name);
                }

Even through I changed the path to images/
I still get You don't have permission to access /nette-mvbs/www/pages/ on this server.
I need to resize the image to have a smaller copy also.

What am I doing wrong?

Thanks

frocco
Member | 46
+
+1
-

Well it seems I cannot have a presenter named Pages and a folder in www named Pages
I changed it to Pages_image and got no errors.