Welcome, guest ( Login )

Powered by JotSpot

WikiHome » 1.2.0 » smugmug.images.upload

smugmug.images.upload

Version 2, changed by devbobo@gmail.com. 05/10/2007.   Show version history

API Method: smugmug.images.upload

This method will upload a file to the specified Album (identified by AlbumID) with the required parameters.

It is STRONGLY recommended that you use one of the binary uploading methods rather than the API directly.

IMPORTANT: If you choose to upload via the API directly anyway, please use upload.smugmug.com as the hostname portion of your endpoint to POST to, otherwise your upload won't process.

Arguments:
  • String SessionID
  • int AlbumID
  • String Caption
  • String FileName
  • base64 Data
  • int ByteCount
    • The # of bytes in the (non-base64) file. Used to ensure upload completed properly
  • String MD5Sum
    • The md5 hash of the file being uploaded. Used to ensure upload completed properly

Result:
  • int ImageID

Fault Codes:
  • 9 - "invalid album"
  • 6 - "wrong format"
  • 5 - "system error"

Attachments (0)

  File By Size Attached Ver.