Skip to end of metadata
Go to start of metadata

Our API documentation has moved...

Redirection Notice
This page should redirect to http://wiki.smugmug.net/display/API/Uploading in about 5 seconds.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. May 10, 2008

    Anonymous

    upload.smugmug.com expects the Content-MD5 header to be in hexadecimal; it rejects the base-64 version mandated by RFC-1864 http://www.faqs.org/rfcs/rfc1864.html .

    Also, the Content-Type on the response (at least for JSON) is "text/html; charset=utf-8", not "application/json" as it is on api.smugmug.com.

    1. May 10, 2008

      Anonymous

      Also, the X-Smug-FileName header is not as optional as it sounds.
      Since the PUT url has the file name in it, I expected the photo to
      get that name if you omit the X-Smug-FileName. Instead, it gets
      the empty string as its name.

  2. Dec 01, 2008

    Anonymous

    How are multiple keywords to be sent? I'd rather have a way to delimit keywords using a non-alphanumeric character, or better yet, separate headers. Using a comma as a delimiter (or semi-colon) just won't work.

    I'd also like a way to get around the processing of the keywords that SmugMug does. I don't want any of the heuristics applied (I already know what the keywords are and how they should be grouped, and I'd like that honored). Will indicating the keywords in this fashion do that for me?

  3. Jan 05, 2009

    Anonymous

    Hello,

    seem like [filename to be upload]" class="external-link" rel="nofollow">http://upload.smugmug.php/[filename to be upload] is not up.
    I've tried to upload a file using PHP via CURL and using PUT as the method of choice and always get the error code #5.

    Does anyone have any luck uploading the file?
    Though i use the phpsmug.com, the PHP wrapper with the Smugmug API and only successfully upload via image_uploadFromURL. The upload a file from local machine still have problem.

    Please help

    Thanks

    1. Jan 26, 2009

      Anonymous

      I always check to make sure the headers are setup right with http://www.httpviewer.net - or you can use mozzila plugins

  4. Feb 24, 2009

    Anonymous

    Does the upload function work with video aswell as images?
    If so can you give me details of the API?

  5. Mar 10, 2009

    Anonymous

    Just a note: although you can connect to upload.smugmug.com via https, uploads will fail with error #4, "wrong format." You can only upload via un-encrypted http connections.

  6. Apr 20, 2009

    Anonymous

    What html-escaping (if any, and I assume there's plenty) is being performed on the X-Smug-FileName, X-Smug-Caption, X-Smug-Keywords headings in final display to clients? I'm trying to migrate from another database format, complete with [url=foo]bar[/url] (square-brace-url-close-square-brace...) and " (the html entity for quotation marks, ampersand-quot-semicolon) and [I]baz[/I] (square-brace-I-close-square-brace...) for html-ish markup, and I'd like the final output to be true to the original input.

    If the FileName, Caption, and Keywords are being html-escaped, is there a similar markup language in place on Smugmug that I can translate to? I saw mention of simply putting all html input inside <html>...</html> (less-than-html-greater-than...) blocks, but this cannot be the entire story -- otherwise, there'd be no end of cross-site scripting vulnerabilities.

    Thanks