Download & Extend

The files are saved in a folder that includes the user identifier...

Project:Gallerix
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

So, the images are saved under:

.../file/gallerix/album/<uid>/<nid>/image.extension

The problem with that technique is that when a user edits the Album and changes the Author field to a different user, it breaks the path which now points to the new author folder and thus does not include the pictures previously loaded in the album.

It seems that the uid should not be included in the path.

Comments

#1

Actually, if we want to use per user quotas, then we need to save files in user folders and not even in a common Gallerix folder.

#293342: Gallerix able to use IMCE user directories

Not only that, this means each image needs to have a full path because otherwise we just won't be able to find it again.

Also, what about the thumbnails? Should their size count in the user's quota?

See also the problem reported in the following issue as getting the filename of each image will need to be accessible by other modules:

#937094: thumbnails or thumbnail in path?

nobody click here