PDA

View Full Version : Can I Use Separate Folders


rvblog
13th of December 2004 (Mon), 12:52
All the other photo gallery programs that I have researched so far (example: coppermine, minigal, etc) insist that all photos be uploaded to a folder within the programs install directory:

for example: ../coppermine/albums/uploads

and all of these programs are unable to access files that are located outside of their main install directory (at least not naturally anyways - a hack can do anything I guess if done properly)

Ideally, I would like to be able to upload my photos to a separate folder (directory) rather than to a program's main install directory - one reason is so that other applications would have access to a photo folder that is independent of, and not hoarded by, a certain program.


Under my ideal situation, my root directory structure would look something like this:

../other-program-folder1
../albums
../exhibit-install-folder
../uploads
../other-program-folder2
../other-program-folder3
etc, etc

Is this setup possible with the exhibit engine program ??

Transfix
13th of December 2004 (Mon), 13:05
I would assume this is possible so long as EE could write into those folders. Using the upload script or ImageMagik to make thumbs would need to write into those locations.

My structure is setup like this.

/eefolder
/eefolder/photos/exhibit1
/eefolder/photos/exhibit2

In the path setup I don't think there is anything keeping you from ../ to backup a folder to get outside the HTML root. But remember, if your server is setup to disallow http requests from outside the html root then the images might not be displayed.

rvblog
13th of December 2004 (Mon), 13:36
Sorry, I should have made myself clearer (I knew what I was talking about LOL)

I don't really care in what folder EE "puts the images for the photo gallery" (or where it "writes" to) once it processes the photos - wherever they end up in order to be displayed in the gallery is fine with me.

I was more interested as to whether EE can "get the images for the photo gallery from a directory or folder located outsite of its main install directory" (or where it "reads" from).

In other words, I would like to upload my photos to a separate ../uploads folder and keep the originals located in that folder for use by other applications.

If EE can get the photos from that separate ../uploads folder and then process then elsewhere (even if its in its own directory) then that's exactly what I'm looking for in a photo program.

Hopefully my second attempt is a bit clearer.

Thanks

Pekka
13th of December 2004 (Mon), 15:55
In file EDITOR_upload.php you have

$upload_folder = "UPLOAD/";

if you change this (keeping inside directories www server can reach) you can place upload folder anywhere). It is a reelative link related to input folder, so

../means one directory back
../../ means two directories back
../../ORIGINAL/ means two back and to folder ORIGINAL

I have not tested this now, but it should work.