Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • June 29, 2016, 11:59:45 PM
  • Proudly celebrating 10 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

Author Topic: IDEA: Upload a picture to image hosting service  (Read 4477 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,021
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
IDEA: Upload a picture to image hosting service
« on: November 30, 2005, 10:35:19 AM »
im interested in a commandline tool that could upload an image file specified on the commandline to one of the image hosting services (like http://www.imageshack.us/) , and reports back the url to the uploaded file.

how i would use this:
i'd like to add it to screenshot captor tool menu.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Upload a picture to image hosting service
« Reply #1 on: November 30, 2005, 12:56:03 PM »
 :) I think wget --post-data=string should work. All that needs to be done is build the right post string from the <form></form> data on each site.

wget can be found at http://users.ugent.be/~bpuype/wget/

Skrommel
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,021
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: IDEA: Upload a picture to image hosting service
« Reply #2 on: November 30, 2005, 01:02:47 PM »
it shouldn't be too much harder than using wget, however the tool needs to check for the url returned by the image hosting service and report it (or copy it to clipboard), or display an error if upload was unsuccessful.
« Last Edit: November 30, 2005, 01:27:27 PM by mouser »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Upload a picture to image hosting service
« Reply #3 on: November 30, 2005, 01:54:09 PM »
 :tellme: Wget should return a html file, which could be searched for the url or error message.

Skrommel
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,132
    • View Profile
    • Donate to Member
Re: IDEA: Upload a picture to image hosting service
« Reply #4 on: December 22, 2005, 11:47:11 AM »
@mouser: any news on this one?