I've been using Photoshare for a while. Had some issues with it (bug with a particular view of the albums), really missed the "preview" size that gallery has, so I've been eagerly awaiting Mediashare.
I'm successfully using Photoshare with a folder that's not accessible to the public, and was hoping to do the same with Mediashare. However it doesn't seem to work.
Current Photoshare folder: /home/xyz_web/data/images/photoshare_images
Current Mediashare folder: /home/xyz_web/data/media/mediashare
Module folder is: /home/xyz_web/public_html/modules/mediashare
I noted this - "Make sure it corresponds to a directory named 'mediashare' in PostNuke's top directory". So I wondered if it might not work this way.
I can upload the images OK. Using FTP I can see that the 3 images uploaded are now inthe right place, and there's 9 files. 3 images x 3 sizes, all with long filenames. So it all looks OK. The album says there's 3 images, but you can't see any image.
Does Mediashare work in a different way, so that you can't "hide" the images.
Posted: 25.03.2006, 14:00
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
I found the notes on storage for Photoshare:
Third - you should not - never - place you Photoshare images beneath the /public_html folder (or similar - some places it is /httpdocs). This makes it possible to access the images directly and bypassing Photoshare access control.
In the above case you should use the folder /www/users/ix4517/photoshare_images and /www/users/ix4517/photoshare_tmp for the image and tmp folder. On your FTP client it would be /photoshare_images and /photoshare_tmp.
Does Mediashare support the same method?
The readme.txt indicates not:
Create a directory named "mediashare" in the main PostNuke directory
Posted: 25.03.2006, 14:57
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Please read the security section in the readme file:
Quote
Mediashare uses another technique: all images are stored in the filesystem
in a place where the webserver can access them (in the "mediashare" directory).
This means all items are accessible to everybody!
To avoid everybody accessing the files we name them randomly with filenames
that should not be possible to guess by outsiders. You will only get these
filenames if you are able to browse the Mediashare albums containing them (and
thereby serving links to them).
Posted: 25.03.2006, 20:50
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Yes, I did read that, so I was afraid that the answer would be "no you can't do that".
I'm interested to know what is it about the new technique which prevents using the Photoshare-style path. I'm assuming that you're using GD to do the resizing, and perhaps that needs public_html access. :-(
Posted: 26.03.2006, 09:10
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Nothing to do with GD. It's purely a design decision.
Photoshare served images by streaming them through PHP - that takes some performance out of the server when you have to kick life into PostNuke everytime you show one image.
So Mediashare lets the webserver display the images directly from the disk without starting any PHP. That's why the filenames have to be so cryptic - I don't want people to be able to guess them.
You could argue that the image security is better than your PostNuke security. Each filename consists of approx. 20 characters - how many characters do you have in your administrator password?
Posted: 27.03.2006, 23:03
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
My concern is not people guessing the filename, but the URL being discovered by a legitimate user, who then distributes that to others.
Anyway, the photos are really that important, security wise, so I'll probably stick with it. The reason I moved from Gallery to Photoshare was specifically due to the "hidden" store.
Off to install beta2 now... :D
Posted: 28.03.2006, 07:18
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
The module is prepared for storage plugins so maybe it will be possible to use the hidden store later on. Probably not without new URLs (although a lot can be done with mod-rewrite).