Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
Offline
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
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
Re: Plugin request: Image Batch Upload
Yeah you know what, I completely switched off :P it’s so hot in this room and my skin is boiling. I am familiar with shell access, as a MS-DOS user, plus I still have to use telnet to configure routers and blah blah. I just haven’t used cygwin before.
Ok now that we’ve established I need to know the above, is it very simple to load the script? Each program tends to require diff cmds so, it looks simple enough I just need to know the code, the line and how to run the script with this. I tried echo and sure enough it works, tried run but it doesn’t exist. exec? launch?
EDIT:
<pre>Use of PuTTY, PSCP, PSFTP and Plink is illegal in countries where encryption is outlawed. I believe it is legal to use PuTTY, PSCP, PSFTP and Plink in England
Use of the Telnet-only binary (PuTTYtel) is unrestricted by any cryptography laws.</pre>
Bloody hell, so I take it I can’t use PuTTytel for this job, I’m still connecting tot he server right?
Last edited by sekhu (2005-05-27 22:25:55)
Offline
Re: Plugin request: Image Batch Upload
ah, I am sorry, I didn’t know what level you were on and hadn’t read the last few comments. :)
In the setup.exe when you get to Select Packages
Open “Base” and check that sed is selected.
Open “Web” and check that curl is selected.
- - Go into the directory where the images are that you want to upload (using explorer).
- - Create a text-file: upload.sh
- - Edit the file in an editor and copy and paste the script.
- - Adjust the first three variables [1]
- - Now start Cygwin shell
- - If the directory with the images is C:\images on the prompt type: cd /cygdrive/c/images [2]
- - Type ./upload.sh hit enter and wait.
[1] if your loginname or passwords contains non-alphanumerical characters, you may want to create a new user for this in Textpattern)
[2] There is a utility called cygpath that will convert windows to cygwin paths, very helpful for long pathnames. cygpath “C:\test”
edit: This script will run on your own computer at home, you don’t need any special access to your server to do this. Just make sure your firewall is not blocking any outgoing traffic.
Last edited by Sencer (2005-05-27 22:32:24)
Offline
Re: Plugin request: Image Batch Upload
so far so good I think, it’s running after entering .upload but just waiting – what’s the usual deal? Does the cursor sit there flashing until it’s complete then output a message? There’s about 20mb of images, and I have 256k upload -so even then I know it will take sometime, but is there any way I can find out if anything is actually being uploaded?
EDIT: Looks like I didn’t get it work correctly, it sat there for ages thinking, but nothing uploaded. Bugger
Last edited by sekhu (2005-05-27 23:37:40)
Offline