Add items progress?

poslundc
poslundc's picture

Joined: 2007-09-03
Posts: 5
Posted: Mon, 2007-09-03 18:09

I've recently encountered trouble adding more than a few dozen items over a megabyte in size each when adding from the local server... the hosting computer sits there and churns on it, and eventually errors out with an HTTP 500 error.

I have the same problem if I try adding the items by zipping them first.

In the end, I've had to go and add the items piecemeal, checking off about a dozen at a time. But this is obviously not a good solution. Is there a better way to do a mass upload of files?

I was thinking I might do some research into what would be involved in making an AJAX add-multiple-item plugin, so that you can have the option (whatever method you use to add the items) to have the add take place one file at a time, with a progress bar displaying for them. Breaking the adds up into separate page loads would generally solve this problem.

I'm a very competent PHP/JS programmer, but haven't delved into the Gallery codebase as of yet. Should I attempt this, or is there an alternative/has a solution already been found? If I should, can someone direct me to where I should look to hook my code in?

Thanks,

Dan.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-09-03 19:10

try the nightly snapshot of g2.3. we've done just that. added a progress-bar for the add-item process.
you need the latest nightly snapshot of g2.3 including the new version of the additem module which provides the "from local server" method.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
poslundc
poslundc's picture

Joined: 2007-09-03
Posts: 5
Posted: Mon, 2007-09-03 22:50

Ok, thanks!

Dan.