topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Saturday December 14, 2024, 11:28 am
  • 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

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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
IDEA: Upload a picture to image hosting service
« on: November 30, 2005, 10:35 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: 933
    • 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 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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Upload a picture to image hosting service
« Reply #2 on: November 30, 2005, 01:02 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 PM by mouser »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • 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 PM »
 :tellme: Wget should return a html file, which could be searched for the url or error message.

Skrommel

brotherS

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