Hi,
I just updatet my module from album photos 6.x-1.2-rc3 to 6.x-2.0-beta6.
Now i got the problem that new uploaded pictures (without the SWFUpload and with it) has the chmod 600. I can download them (via FTP) and they are correctly displayed. But when I try to open them in a browser (direktly or via drupal) it just says I have no athority to do that (drupal gallerys just stays empty). Thats no surprise...

When I change the chmod to 755 it shows everything exactly like it should. But I have to do it all manually.

Comments

gefundener’s picture

Assigned: gefundener » Unassigned
eastcn’s picture

This is not a code problem.
Perhaps your php in safe mode operation. Please check the server permissions settings.

gefundener’s picture

I didn't change anything on my server since I uploaded the page. And the safemode is off. Just tested it.
But thats not the problem! It used to work pretty fine before i updated to the new version (6.x-2.0-beta6).

I think I found the problem... The ownership of the files just changed. All files that work pretty well have the ownership of "www-data" (the browser). The new files I uploaded has the ownership of my ftp-account. That shouldn't be like that, because then only the owner (the ftp-account) can view and change them. But to look at them via Webbrowser it should be the owner "www-data"

And to avoid the question: No, I didn'd made any changes on the Data on the server. I just updated the photos module.

SuperSlon’s picture

I had the same problem. Only in album photo module pictures uplaoded with wrong chmod 600. All other files that I upload form other modules (IMCE for exaple) load with right chmod. How to fix problem?

SuperSlon’s picture

On most web hosting providers script which upload files run with safe mode permission (chmod 600). So it create wiles with this 600 chmod. Look for IMCE module. After download file it automatic change the chmod to 644.
I think the developer of Album Photos must add this stuff in module.

nathaniel’s picture

Status: Active » Closed (cannot reproduce)

New maintainer, cleaning up old issues in issue queue.

Please re open if this is still a problem.