Dashboard > SmugMug > ... > API 1.2.0 > smugmug.images 1.2.0 > smugmug.images.uploadFromURL 1.2.0
Log In   View a printable version of the current page.
SmugMug
smugmug.images.uploadFromURL 1.2.0
Added by David Parry , last edited by David Parry on Jan 18, 2008  (view change)
Labels: 
(None)

API Method: smugmug.images.uploadFromURL

This method will upload a file from a specified URL 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 URL
  • String Keywords optional
    • Keywords should be separated by a semi-colon.
  • String Latitude optional
    • Latitude of the image in the form D.d, such as 37.430096
  • String Longitude optional
    • Longitude of the image in the form D.d, such as -122.152269
  • String Altitude optional
    • Altitude of the image in meters
  • int ByteCount optional
    • The # of bytes in the file. Used to ensure upload completed properly
  • String MD5Sum optional
    • 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"
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators