Server Add - Temp Folder instead of Permanent

rasamassen

Joined: 2009-08-01
Posts: 12
Posted: Sat, 2009-08-08 16:30

I tried the Server Add module out (version 3). I was hoping this module would be a solution to the general problem of files that are too big to be uploaded through POST (particularly videos). In some ways it is, and in some ways it isn't.

Here's what I'm looking for in a Server Add function (Step 4 is where Server Add and I differ):
1. Some files, because of my PHP settings or my hosting site's Apache settings, are too big or timeout on HTTP POST upload.
2. So I create a temporary folder in my FTP and upload the files there.
3. Using Server Add, I add these files to my gallery.
4. Server Add treats this folder like a temporary folder rather than the permanent location of the files and moves (or copies) the files to the location in the G3 structure of the album I'm adding the files to (thus, I can delete the original files if they were copied, and the temporary folder can either be deleted or used for other uploads in the future).

Things that annoyed me when I tried the Server Add module out included:
1. I could see a list of the files, only the directories.
2. Server Add created a new subalbum by the name of the directory I added rather than placing the new files in the album to which I was trying to add them.
3. The files remained in my temporary FTP directory rather than being moved to the directory in the G3 structure where the album to which I was adding files stored its images/movies.

A very simple solution to this, I think, would be an option either in the Admin of Server Add or in the Server Add dialog when adding new photos that was a radio box between "Keep Items in Original Directory" or "Move Items into G3 Album" (I'm sure wording could be improved). Also, moving the items into the G3 directory would eliminate the need for a Server Add table in the database.

Any thoughts?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-08-09 05:44
Quote:
1. I could see a list of the files, only the directories.

Double clicking the directory will open it up and you can choose individual items.
Please upgrade to an experimental version if you don't have this behavior.

Quote:
2. Server Add created a new subalbum by the name of the directory I added rather than placing the new files in the album to which I was trying to add them.

See above.

Quote:
3. The files remained in my temporary FTP directory rather than being moved to the directory in the G3 structure where the album to which I was adding files stored its images/movies.

Expected behavior. Gallery does not move them but copies them.

Quote:
A very simple solution to this, I think, would be an option either in the Admin of Server Add or in the Server Add dialog when adding new photos that was a radio box between "Keep Items in Original Directory" or "Move Items into G3 Album" (I'm sure wording could be improved). Also, moving the items into the G3 directory would eliminate the need for a Server Add table in the database.

Any thoughts?

G2 had a similar behavior with symbolic link. We are aiming for simplicity, speed, less complexity, easier to understand in G3 and as a result some features will be lost. If you can implement the simple solution and create a module for this it will be welcome.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team