Hey!
Is it not possible to add an entire folder that itself contains several folders with pictures within them?
C:\folder\folder\folder\folder\pictures
C:\folder\folder\pictures
And so on..... Yeah, you get the point! :roll:
The thing is that here at work I have about 200 folders and 80GB of pictures and to add one and one folder will take some time!
Cheers from Sweden!
Posts: 3236
There exists a "gallery2add.pl" or something like that I believe, maybe someone will post a link to it. You could try the FAQ at the top of the forum, but I'm not sure if its in there or not.
Posts: 20
Hmm, nooo... I can't find anything about that one... Either in FAQ or Google! :-?
Thanks anyway!
Anyone else?
Posts: 13451
http://galleryupdates.jpmullan.com has it.
Posts: 20
Ah... Cool! :D
So, for a newbie like me on G2 - Where should I put that file? Folder?
And I guess it should be other/g2add.pl 24K!?!!
Posts: 13451
killerstrom, you run it from the computer you want to upload from.
Posts: 20
Okey!
I guess it would be better if I had Linux now to run a Perlscript, do you know any good software to run perlscript on my Windows installation (with Apache)?
Will try ActivePerl software now... But maybe you know someone good?
Posts: 13451
It should run in ActivePerl, you might need to install some modules for it. Afaik there are some instructions in the script itself.
Posts: 20
Great lad.... I will try this as soon as it is installed...
Thanks!
Posts: 20
Okey!
Now I have been trying this "g2add.pl" alot and still don't getting it to work somehow, anyone up for some support? *please* ;)
This is how it looks:
And that album sure does exists, i have been trying other aswell. And I still get the same "error" message.
Please please..... please!
Cheers!
Posts: 974
killerstrom, G2add.pl uses the Gallery Remote protocol, which expects the id of the album to which you will be adding the images. :/ If you do not have short urls turned on in G2, then it will be easy to get the id. If you have short urls turned on, then you can find out the id by editing the properties of the album and looking at the url.
Any folders that you specify on the command line will be added to the album that you specify, so you would end up with origoarkivet/origoarkivet in G2. To prevent that, you can add that folder to the gallery root. You will probably have to find out the root id by editing the properties.
It looks like you have already put your images into the G2 data directory? If so, you will need to move them somewhere else, or G2 will get confused.
Here's an example command line:
perl g2add.pl -l [domain]/gallery/ -a 5 -u [username] -p [password] D:\images\origoarkivet
Let me know if you have any further trouble. Thanks!
Posts: 20
This is the error message I get when I run the "g2add.pl" now, but I have a question aswell... The thing is I wanna have the folder structure as it is now (see above, first message) even in G2. Is that possible with this "g2add.pl" or not? If not we don't need to worry more about this problem. If we can get this to work I can ensure you guys that my boss will send a donation of money (he told me that before) to Gallery, he is more than happy for this one instead of buying something expensive other stuff.
Posts: 974
killerstrom, that was a bug in g2add.pl. I just fixed it, so if you download a new copy it should work for you. Thanks!
By the way, you can request me through the "paid support" part of this website if you need customizations made to g2add.pl or quicker support.
Posts: 20
jumullan ... ah, thanks... I will try this as soon as I get to work!
Thanks mate! :wink:
Happy New Year! :D
Posts: 20
jmullan... Opps, still problems!
I downloaded the latest version that you have uploaded and now I get this error message.
Is this problem my fault or the script? I think I have tried everything here now to get this to work just fine. Been checking all the parameters I can think of. Checking the security and so on. But there are still problems. Upload via Remote Gallery works, but not good... often it stops to upload images. And I still don't get the structure I want.. (my boss wants). As the mather of fact, that structure are pretty good in our enviroment.
So any ideas?
Cheers from Sweden!
Posts: 974
Can you upload that eps file through the normal interface?
Posts: 20
jmullan... Hey, first I wanna thank you for all the support you give me. I am more than happy.
It works just fine to upload and download *.eps (off course not show via G2) via the normal webinterface.
Posts: 20
Doing some updates here now...
I am in a desperate need of good help.
This is the error message I got now when I run g2add.pl
It is still possible to upload *.eps images via the usual web interface but not via "Remote Gallery".
Any ideas, someone??? :|
Posts: 974
So you can add the files via the web interface but not g2add.pl or Gallery Remote (the java client) ?
You should really consider just contracting me for an hour or two to work directly with you on this.
Posts: 20
Yes, I can add files (not create an entire folderstructure with files that I wanna have) via the web interface and with the Gallery Remote java application but not with g2add.pl.
"g2add.pl" just creates some of the folders and then it stops to upload any files. I thought it was a security problem at first, but no. The folders I use have Everyone:F.
And about the contracting, I should take a chat with my boss about that jmullan. If he consider this G2 is good in our inviroment that should not be any problem at all. You have been very helpful so far.
Cheers from Sweden!
Posts: 974
Could you try a test album with just a jpg in it? That's the next test.
This is an oddity and the error message isn't giving me a whole lot to work with.
Posts: 20
Now I deleted all other files like *.tif, *.eps and so on and just saved *.jpg-files in the testfolders but I got the same result as before as you can see above. The folders it creates just fine, they get an ID in the database and I see them in the web interface and I can delete them aswell. But the rest... Hmm, strange! :-?
Sorry about the little info you get from this error message, if you can think of any other thing I could do to get any more specific error message just let me know. That is all it shows right now.
Thanks m8! I owe you one...
Posts: 20
Making this one active again....
Anyone up for some support in this matter? :-?
Thanks!!
Posts: 974
Feel free to drop me a line at
or contact me via AIM or any of the contact methods available. We would need to edit your G2 to get any more troubleshooting data out of it. Give me a holler if you see me online.
Otherwise, there aren't a lot of people familiar with the remote protocol or galleryadd.pl.
Posts: 20
I don't know if you seen my mail, but I send one last week....
Cheers from a windy Sweden!