Quantcast
Channel: Digital Grin Photography Forum - SmugMug APIs, Hacks & Tricks
Viewing all articles
Browse latest Browse all 147

Getting Extra Image information in Response from Upload

$
0
0
I have noticed that for a few images when I upload images using the API that apparently SmugMug does some modification to the files, thus changing the MD5Sum of the image. This causes a problem for my library, as I try to prevent uploading duplicate images.

The current solution is to to call smugmug.images.getInfo after the upload is complete and compare teh MD5Sum there with the one I calculated before hand. If they are different I can at least tell the caller, or maybe even download it from SmugMug overwriting the original.

What I would like, is if the response from the upload included the MD5Sum of the image on SmugMug along with the URL to download the file. This would allow me to not have to do a second api call (which adds up when you are doing this for tons of images).

For more a previous discussion of this issue see this thread.

Viewing all articles
Browse latest Browse all 147

Trending Articles