DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Upload a picture to image hosting service  (Read 26,230 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
IDEA: Upload a picture to image hosting service
« on: November 30, 2005, 04:35 PM »
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
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Upload a picture to image hosting service
« Reply #1 on: November 30, 2005, 06: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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: IDEA: Upload a picture to image hosting service
« Reply #2 on: November 30, 2005, 07: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, 07:27 PM by mouser »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Upload a picture to image hosting service
« Reply #3 on: November 30, 2005, 07: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
Re: IDEA: Upload a picture to image hosting service
« Reply #4 on: December 22, 2005, 05:47 PM »
@mouser: any news on this one?
Thank you.

ibay770

  • Participant
  • Joined in 2017
  • *
  • Posts: 48
Re: IDEA: Upload a picture to image hosting service
« Reply #5 on: February 05, 2025, 10:41 PM »
Sharex has such a feature IIRC.

https://getsharex.com/

Original address: https://www.donationcoder.com/forum/index.php?topic=1660.0