Way to import photos AND have gallery bring in folder hierarchy

anitract

Joined: 2010-03-01
Posts: 11
Posted: Fri, 2010-03-05 18:32

I am looking for a way to import my collection of photos into Gallery2. The key is that I want to preserve the folder structure that as it exists on my computer. What is the best way to do accomplish this?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-03-05 18:45

upload via FTP to a directory on your server. Directory structure intact.
And use itemAdd from local server.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
anitract

Joined: 2010-03-01
Posts: 11
Posted: Fri, 2010-03-05 18:57

Here's my problem with that: I need to grant read access for my apache user to that directory, right? This directory is also a shared folder on my network that I would prefer to keep restricted to just my account. Maybe there is no way around this though...

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-03-05 19:28
 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2010-03-05 19:53

Copy the file structure to another directory that isn't shared on the network then. You're going to put the pictures in G2, so your apache user is going to have to have read access to them then, anyway - so what's the big deal?

 
anitract

Joined: 2010-03-01
Posts: 11
Posted: Fri, 2010-03-05 20:22

What I was really hoping for was a permanent solution...meaning, I wanted to be able to import directory/photo structure on the fly without loggint into the server and changing permissions. I would just leave the apache access on the share, except I am worried that that would open up security issues...thoughts

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-03-05 20:37

Put your upload directory in a place that Apache has read access too, like under your website. If at that point Apache or PHP is running as your account, then you only need to make is to your account has read access to it.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2010-03-05 20:38
Quote:
I wanted to be able to import directory/photo structure on the fly

http://gallery.menalto.com/node/81010#comment-284192

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-03-05 20:40

Oh and you can also try archive upload with a zip file that has the directory structure zipped up too. I think that'll work, but I'm not sure because I don't use it because I generally upload a lot of files at a time and it would create a really large zip file to upload (hitting limits) and for the server (php) to process (hitting memory limits)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here