Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

gallery folder location config
gstadter
#1 Posted : Friday, 14 January 2011 7:39:34 AM(UTC)
Rank: Member

Joined: 2/09/2009(UTC)
Posts: 29

feature enhancement suggestion:
Ability for admin to configure file storage for gallery outside of GSP root.
Not sure how many others would benefit from this ability, but it would help me in my deployment/upgrade process, etc...

It seems as though GSP is seemingly partially capable of doing it today, just not quite completely.
(note that upon sync, it did locate the configured folder that is outside of the GSP installations root....even located the first media file. directory.FullName worked but album.FullPhysicalPath did not.

Current file: Site_Media111\Images\walle.jpg
Error: System.ArgumentException: Error in SynchronizeMediaObjectFiles(): The full directory path of the parameter 'directory' does not match the directory path of the parameter 'album'. directory.FullName='D:\domains\yyyyyyyorg\dev\www\Gallery_Storage\Main'; album.FullPhysicalPath='D:\domains\yyyyyyyorg\dev\www\Media\..\Gallery_Storage\Main'
HTTP Status: 500
Roger Martin
#2 Posted : Friday, 14 January 2011 8:58:57 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

You may have found a bug, because it should be able to handle any UNC-accessible path. Can you provide details about what you specified for the media objects path? I will try to repro it here. If you don't want to post it here, you can email me at roger*at*techinfosystems*dot*com.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
gstadter
#3 Posted : Friday, 14 January 2011 9:43:03 AM(UTC)
Rank: Member

Joined: 2/09/2009(UTC)
Posts: 29

I specified the following as the media folder:
..\Gallery_Storage\Main
seems thedirectory.FullName knew by the ".." to change to one folder "up" from root to D:\domains\yyyyyyyorg\dev\www\ to find the Gallery_Storage folder.
The only part that failed is when it went to generate album.FullPhysicalPath that did not interpret the ".." as an indicator to move up one folder level.

-Gary
Roger Martin
#4 Posted : Friday, 14 January 2011 10:25:03 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Can you avoid using the ".." by specifying an absolute path?

I will look into the coding required to support using "..". If it's not bad, I may be able to sneak it into the next release.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
gstadter
#5 Posted : Friday, 14 January 2011 12:14:40 PM(UTC)
Rank: Member

Joined: 2/09/2009(UTC)
Posts: 29

I can for this particular instance, but in shared hosting instances, using ..\ would be of great use.
Roger Martin
#6 Posted : Friday, 14 January 2011 1:43:18 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I will look into adding support for "..".

FYI, I frequently set up sites with shared hosts where I assign the media objects directory to one higher than the web application, and I can do it without "..". What I do is, after installation, I go to the Media Objects page in the Site admin area and notice the full path to the media objects directory. Then I modify it to refer to the desired directory outside the web app and specify that in the media objects path.

As noted elsewhere, there is a huge benefit to specifying the path outside the web app directory because you avoid app restarts every time an album is deleted.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.