How to upload an image to min.us using their API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Simondotdot
    New Member
    • Nov 2010
    • 1

    #1

    How to upload an image to min.us using their API

    I ma trying to upload an image to min.us programmaticall y with their API.

    The information they give to do so are :
    UploadItem
    * http://min.us/api/UploadItem
    Parameters
    * URL should be structured as follows: http://min.us/api/UploadItem?edit or_id=enRlK&key =ej0rg&filename =jcm3U.png
    * Body: A standard multipart file POST.

    I tried:
    Code:
    string uploadRequestString = "http://min.us/api/UploadItem?editor_id=wfwee&key=key&filename=1.png";
                string responseString = Encoding.ASCII.GetString(new WebClient().UploadFile(uploadRequestString, "POST", path));
    Any help would be appreciated
  • HeChien
    New Member
    • Jan 2011
    • 1

    #2
    I don't know about C#
    You should pass the image content without any query string to http://min.us/api/UploadItem?editor_...filename=1.png

    Comment

    • Colin Edwards
      New Member
      • Jan 2011
      • 1

      #3
      Can you leave some more info about how this is failing? Even the status code would be helpful. It might be worth checking if WebClient is sending the content-length header to the server.

      Comment

      Working...