Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-05-27 07:19:10

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Plugin request: Image Batch Upload

I would be willing to donate to someone’s wishlist or pay a contribution towards getting this built, like one of those ransom plugins. I just cannot handle uploading one image at a time anymore. Having just done a rough count of how many images I need to move over from WP site (approx 400+), and having moved over all of…45 images exlcuding the 400+ I need to move over, I think I will more likely reach a nervous break down before I complete my site.

Is there anyone willing to make a batch upload plugin for images. Just as it now shows Browse – upload images, perhaps that can be copied over or something, and replicated about…20-50 times? It’d probably takes me hours or days with this, rather than the weeks and probably months otherwise.

Thanks in desperation.

Offline

#2 2005-05-27 11:00:07

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: Plugin request: Image Batch Upload

How about a Gmail-style upload? First there is only one upload box visible but below it is “attach another file”-link. By clicking it another box appears and so on.. Javascript or something involved.

Offline

#3 2005-05-27 11:34:15

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: Plugin request: Image Batch Upload

I think it would be nice not to have a plugin for that but to have this integrated in Textpatterns source code directly.

Offline

#4 2005-05-27 11:58:30

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: Plugin request: Image Batch Upload

Agreed.
Improvements in txp image handling are desperately needed.
A lot of people work with large quantities of images.

Offline

#5 2005-05-27 16:17:34

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Plugin request: Image Batch Upload

I know, but in light of it probably being a fair whack before this improves (I only say this, because TXP is not along in this, WP, e107, and many others have this same problem), a plugin meanwhile would be rather sweet. Unless someone is interested in uploading 400+ images and resizing them all, and assing cats and add the alt and captions? Come on, you know you want to:)

Offline

#6 2005-05-27 16:23:51

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: Plugin request: Image Batch Upload

Dont really mind how its done – a plugin would be OK.

Offline

#7 2005-05-27 18:26:45

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Plugin request: Image Batch Upload

> Improvements in txp image handling are desperately needed.

Patches are always welcome.


Alex

Offline

#8 2005-05-27 20:07:42

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Plugin request: Image Batch Upload

If you are comfortable on the shell and have curl you can run this code snippet in a shell script to upload all your image files:

http://textsnippets.com/posts/show/31

On windows you can install cygwin (make sure you have sed and curl).

Last edited by Sencer (2005-05-27 20:11:10)

Offline

#9 2005-05-27 21:34:41

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Plugin request: Image Batch Upload

> Sencer wrote:

> If you are comfortable on the shell and have curl you can run this code snippet in a shell script to upload all your image files:

>http://textsnippets.com/posts/show/31

>On windows you can install cygwin (make sure you have sed and curl).

You lost me on shell I think :) Perhaps one of the others guys will understand. What would this do? Create an interface? I’ll see if someone can help me with this, it looks simple enough… I just need to understand: shell, curl, cygwin:)

EDIT: Installing cygwin, will look at curl and sed net

Last edited by sekhu (2005-05-27 21:51:12)

Offline

#10 2005-05-27 21:45:51

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Plugin request: Image Batch Upload

Shell access will depend on what you host will allow (many do not allow) You would need something like putty to logon to your server and run the script through your “shell” ssh access. Does that help ;)

Offline

#11 2005-05-27 21:53:04

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Plugin request: Image Batch Upload

Ok well I’m installing cygwin on my local computer, do I still need putty? I think ssh access is enabled on my host, though I don’t rem, I think with most hosts it’s a free option, but you need to ask for it to be enabled.

So cygwin will include sed and url right? I’ve set it to Unix and well it’s doing it’s thing, I just need to take the next steps. Shoudl I even be doing this from my destop PC?

Offline

#12 2005-05-27 21:53:16

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Plugin request: Image Batch Upload

A shell is simply an interactive way of “talking” with your computer. Instead of pointing, clicking and dragging, you type in words and (mnemonic) commands at a prompt for what you want. So if you want to gi inside a directory you type: cd /path (cd=change directory), and if you want to list the files in that directory you type ls. And if you know the results of what each commands do, you can tell it to do several things one after another. See http://www.freeos.com/guides/lsst/

The script, when started, sends a HTTP request to your textpattern with a request to login, then retrieves the Cookie from the response. After that, for each file in your directory it sends another HTTP request to your server which uploads the file.

This is probably not suitable for casual users that are not comfortable on the command line. ;)

Last edited by Sencer (2005-05-27 21:53:33)

Offline

Board footer

Powered by FluxBB