topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 2:14 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: FTP Uploader  (Read 32247 times)

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
FTP Uploader
« on: April 03, 2006, 06:25 PM »
Based on Chrono's upload to ftp tool (https://www.donation...ndex.php?topic=493.0), i created a new tool that can be configured with SC, to upload images to and ftp very fast.

The best feature about it, is that you can set a final url, that'll be changed with the name of the file you upload, and copyed to clipboard.
Since most of the times, if you upload an image to an ftp, you want to paste it's name elsewhere, this tool, after uploading the file, will place it's url in the clipboard.

It's syntax is the following:

FtpUploader.exe FTPURL USERNAME PASSWORD FILENAME FILEURL
ex: FtpUploader.exe ftp.FooBar.com FooUser FooPassword Screenshot.png http://foobar.com/foouser

The final url copied to the clipboard is "fileurl/filename". In this example, it'd be http://foobar.com/foouser/Screenshot.png
If you don't wish to use with the copy to clipboard function, just don't put anything under FILEURL, and nothing will be copied.

This script is directed essentially at the SC's external tools configuration, so, here's the instructions on how to configure it on SC:
  • Goto tools menu -> configure external tools.
  • Click Add.
  • Select some name for it (like for example: "upload to ftp").
  • Browse for it's file
  • Fill "arguments" field with FTPURL USERNAME PASSWORD "%file%" FILEURL.

You can get the compiled version here.
Or the .ahk file here.
« Last Edit: September 06, 2007, 07:07 AM by jgpaiva »

allen

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,206
    • View Profile
    • Donate to Member
Re: Ftp Uploader
« Reply #1 on: April 04, 2006, 09:20 AM »
Another option is RCFtp.

It was designed to be a right click context menu option (right click > upload) but accepts command line parameters as well, so you can easily use it (as I do) as an external tool with Screenshot Captor or your text editor.  What I particularly like is that it stores ftp profiles -- so when I go to upload, I can select which account and directory I want to send it to.  That way I don't have to configure different tools for different upload dirs.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Ftp Uploader
« Reply #2 on: April 04, 2006, 09:26 AM »
Another option is RCFtp.

It was designed to be a right click context menu option (right click > upload) but accepts command line parameters as well, so you can easily use it (as I do) as an external tool with Screenshot Captor or your text editor.  What I particularly like is that it stores ftp profiles -- so when I go to upload, I can select which account and directory I want to send it to.  That way I don't have to configure different tools for different upload dirs.
Yes, that is a good point, but the main reason i made this, is to have the final url copied to the clipbard, and don't have to do many clicks to upload something, just click "upload" and wait ;)

allen

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,206
    • View Profile
    • Donate to Member
Re: Ftp Uploader
« Reply #3 on: April 04, 2006, 12:56 PM »
Yeah, that is handy . . . I might have to request such a feature be added to RCFtp :)

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: Ftp Uploader
« Reply #4 on: April 04, 2006, 03:49 PM »
Thanks jgpaiva.
Thanks allen: command line support, freeware, (no installation needed) , i like this.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #5 on: April 08, 2006, 07:40 PM »
I have updated this script, now, if you use a command line like
FTPURL USERNAME PASSWORD "%file%Stamp" FILEURL
A unique timestamp will be added to the file's name, to avoid possible overwriting of a file that had already been uploaded and had the same name.

command line support, freeware, (no installation needed) , i like this.
So is this tools i've just updated ;)

But I don't quite like windows ftp client, i think i'll give RCFtp a try, to see if it's better than the solution i'm using right now.

You can get the compiled version here.
Or the .ahk file here.
« Last Edit: September 06, 2007, 09:22 AM by jgpaiva »

allen

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,206
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #6 on: April 08, 2006, 09:46 PM »
You could use rcftp and a script to get the location copy + convenience of RC.

Jammo the OrganizedFellow

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 212
    • View Profile
    • OrganizedFellow
    • Donate to Member
Re: FTP Uploader
« Reply #7 on: November 09, 2006, 01:45 AM »
You can get the compiled version here.
Or the .ahk file here.
Any new developments jgpaiva?

I am very interested in using this for webdevelopment.
As an aspiring web developer/designer, it is a constant struggle to cope with my ADHD + Hypomania/Bipolar Disorder.

The slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

X_____jamjammo_____

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #8 on: November 09, 2006, 05:14 AM »
I am very interested in using this for webdevelopment.
Hum.. Not really. I've tried to use rcftp, but the cost to learn to use it through command line was harder than the hasle that how the current method works.

What do you mean by webdevelopment? How'd you like to use it?

Jammo the OrganizedFellow

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 212
    • View Profile
    • OrganizedFellow
    • Donate to Member
Re: FTP Uploader
« Reply #9 on: November 09, 2006, 08:43 PM »
What do you mean by webdevelopment? How'd you like to use it?
I do lots of graphic file editing with Fireworks. mostly site background gradients, icons, css background images, etc.

rather than always have FileZilla open, I'd like an alternative (your app) to facilitate things.
I too used rcftp. It worked well for me, but offered no configuration.
I'd rather use a AHK script, learn to use it, and as i get better with scripting with auto hot key, edit the source to do more precisely what i need.
:D
As an aspiring web developer/designer, it is a constant struggle to cope with my ADHD + Hypomania/Bipolar Disorder.

The slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

X_____jamjammo_____

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #10 on: November 09, 2006, 08:59 PM »
Ok... Now i see your point. Well... FtpUploader works quite well (well enough for me to use it ;) ). I think it misses one feature though: upload to an arbitrary folder. curently it only uploads to the root folder of the ftp. I think i could easily add it, though ;)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #11 on: September 06, 2007, 07:01 AM »
the file is missing, can anyone reupload it please

thanks

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #12 on: September 06, 2007, 07:08 AM »
Oops, i moved it around and forgot to modify the post.
It's fixed, now!

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #13 on: September 06, 2007, 09:21 AM »
I still get not found....  :tellme:

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #14 on: September 06, 2007, 09:22 AM »
I still get not found....  :tellme:
Are you sure? Try reloading the page, and clicking the links on the first post.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #15 on: September 06, 2007, 09:23 AM »
My mistake, i didn't edit both posts, only the top one.
Here's the correct link: http://jgpaiva.dcmem...ader/FtpUploader.exe / http://jgpaiva.dcmem...ader/FtpUploader.ahk

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #16 on: September 06, 2007, 09:00 PM »
jgpaiva, you could also point to kalos to the link in your sig to get all your tools.. :)

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Read more about this member.
    • Donate to Member
Re: FTP Uploader
« Reply #17 on: September 06, 2007, 09:58 PM »
jpgaiva> i made a script like that for myself, the code itself isn't interesting at all but instead of ftp.exe, i use http://www.ncftp.com/ (more precisely ncftpput.exe). It's very nice because this way you get a progression bar. You should try it if you didn't have already :)


jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #18 on: September 07, 2007, 06:59 AM »
well ak.. you could post yours :)

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Read more about this member.
    • Donate to Member
Re: FTP Uploader
« Reply #19 on: September 07, 2007, 08:08 AM »
Well, ok :) It's more or less the same as yours, that's why i said it wasn't very interesting.

; Arguments are passed in this order :
; ftpaddress ftprep user pass url file
; ftpaddress : well, ftp adress...
; ftrep : destination folder
; user : user login
; pass : user password
; url : corresponding url, including folder
; file : file to upload
if 0 != 6
{
msgBox Pas assez d'arguments.
return
}
SplitPath 6, filename
clipboard = %5%/%filename%
whatToRun = c:\program files\ncftp\ncftpput.exe -b -u %3% -p %4% %1% %2% "%6%"
Run %whatToRun%

mikej

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #20 on: September 10, 2007, 08:24 PM »
Here is something else to try. I've used it awhile and love it. FTP's from context menu, creates thumbs if desired and creates link text if desired. Very handy

http://www.rightload.org/

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FTP Uploader
« Reply #21 on: September 11, 2007, 02:15 AM »
Great find mike!  :up: :up:

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Read more about this member.
    • Donate to Member
Re: FTP Uploader
« Reply #22 on: September 11, 2007, 04:39 AM »
Oh great, i've been looking for something like this for a long time. I used to use my ahk script + FastExplorer context menu editor, but this looks more convenient. Thanks :)

Automatic clipboard copy would be perfect.
« Last Edit: September 11, 2007, 04:53 AM by ak_ »

goseta

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #23 on: November 22, 2007, 11:45 AM »
Hello, this is a great commad line app, but have a question there is a way to specified a init directory, cause in my ftp I need to change directory like public_html or something, thanks for the reply

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: FTP Uploader
« Reply #24 on: February 17, 2008, 03:57 PM »
damax has made a better alternative to this script, find it here ;)