dmpop / pellicola

Pastebin for your photos
https://tinyvps.xyz/pellicola
GNU General Public License v3.0
165 stars 16 forks source link

Subfolders? #19

Closed donnekgit closed 7 years ago

donnekgit commented 7 years ago

This is a very nice little script. I'm having one difficulty, though: in the docs it says: "Photos inside the default photo directory can be organized into subfolders." However, when I put a folder "others" (containing some photos) inside the "photos" folder, it isn't listed? Is there anything special I need to do to activate that feature?

dmpop commented 7 years ago

You just need to point the browser to the added subfolder. For example, if your Mejiro URL is http://127.0.0.1/mejiro and you have a subfolder named monkey, then the URL to this subfolder will be http://127.0.0.1/mejiro/?d=monkey.

donnekgit commented 7 years ago

I tried that earlier, but going to http://localhost/mejiro/?d=others gives an error message: "photos/others/ or photos/others/tims directory doesn't exist. You must create it manually." But I have ...

dmpop commented 7 years ago

You have to make the others subdirectory and its contents writable by the server.

donnekgit commented 7 years ago

Yup, done that too, using the suggested chown www-data -R mejiro:

drwxrwxr-x  4 www-data kevin  4096 May 16 14:48 mejiro
drwxrwxr-x 4 www-data kevin   4096 May 16 14:24 photos
drwxrwxr-x 2 www-data kevin   4096 May 16 14:27 others
dmpop commented 7 years ago

Strange. Could you try chown www-data:www-data -R mejiro/photos/others