Can't upload content

georgimeyer

Joined: 2012-01-16
Posts: 7
Posted: Fri, 2012-04-13 15:08

Hi All,

I am having issues uploading content. I have enabled debug mode and here is the error I am seeing

Warning: copy(/gallery2/g2data/albums/album/album/flyfish/p_00030.jpg) [function.copy]: failed to open stream: Permission denied in /gallery2/modules/core/classes/GalleryPlatform.class on line 65

This is what line 65 shows in the GalleryPlatform.class file
$results = copy($source, $dest);
umask($umask);

Are there any permissions I need to reset or anything I need to do to get this to work?

Thanks,
Georgi

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-04-13 15:46
Quote:
failed to open stream: Permission denied

your g2data should not be out in a public space, if you can move it behind your public root.

Then you'll have to fix the permissions on that directory recursively ie.
chmod -R 0777 /full/system/path/to/g2data

FAQ: How can I fix the filesystem permissions of the Gallery storage folder?

-s

 
georgimeyer

Joined: 2012-01-16
Posts: 7
Posted: Fri, 2012-04-13 16:19

Sweet! Thanks, that worked. I removed our private path out of the paths in my first comment.