Error: Unable to upload to 4th level album
kinsham
Joined: 2012-04-03
Posts: 6 |
![]() |
Gallery 3.0.9, Debian x64. I have a problem uploading to albums within albums. The structure is: level1 (top) In admin mode, I created an album 'level4' under level3 and uploaded a Uploading to levels1-3 works fine. Checking the contents of /usr/share/gallery3/var/albums/level1/level2/level3 The file is actually uploaded and is present in level4 but shows up in the The photo and the level4 album can be deleted within Gallery3 without error. I'm wondering if there is some limitation on the sub-album levels that Chris |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
I'm wondering if there is some limitation on the sub-album levels that No. I would suspect some other issue. Quote:
So this means the directory is not created writeable to other than user www-data. PHP should be the user www-data so it should be able to write to it. It creates the directory so I don't know why it can't write to it. Dave |
|
kinsham
Joined: 2012-04-03
Posts: 6 |
![]() |
I added user www-data/no password as a user to MySQL. That seems to have fixed the problem. I can see why it would since PHP writes to the DB, presumably as www-data. If that really is needed shouldn't it be a part of the install instructions do you think? Chris |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
shouldn't it be a part of the install instructions do you think? Sure I guess. Got some suggested wordiing and I can add it. To be honest you are the first one to report the issue that I know. Dave |
|
tempg
Joined: 2005-12-17
Posts: 1857 |
![]() |
FYI: I have several galleries that are 4 levels deep: no issues. This may be some other issue with your setup? Also, I'm a bit surprised that it is solved by adding a www-data user to MYSQL. And, if it's a permissions issue, I don't see why it would only affect the albums that are 4 levels deep. Why not the 2nd and 3rd levels? Or even the top level? I'll think over that, but glad you got it working in the meantime. Not sure it should go in the docs, though--at least until someone has an idea of why it works and what the implications could be. |
|