Upload response no longer contains ImageID

mhilbushmhilbush Registered Users Posts: 70 Big grins
I've been using the POST method at this URL for quite some time: http://upload.smugmug.com/photos/xmladd.mg

Today, after successfully uploading some images, I noticed that the XML response does not contain the ImageID. Did something change?

Here's the XML response:
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
    <params>
        <param>
            <value>
                <array>
                    <data/>
                </array>
            </value>
        </param>
    </params>
</methodResponse>
Mark
Mark

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited May 26, 2008
    Make sure you are sending Version.
    mhilbush wrote:
    I've been using the POST method at this URL for quite some time: http://upload.smugmug.com/photos/xmladd.mg

    Today, after successfully uploading some images, I noticed that the XML response does not contain the ImageID. Did something change?

    Here's the XML response:
    <?xml version="1.0" encoding="utf-8"?>
    <methodResponse>
        <params>
            <param>
                <value>
                    <array>
                        <data/>
                    </array>
                </value>
            </param>
        </params>
    </methodResponse>
    
    Mark
    David Parry
    SmugMug API Developer
    My Photos
  • mhilbushmhilbush Registered Users Posts: 70 Big grins
    edited May 26, 2008
    devbobo wrote:
    Make sure you are sending Version.

    Huh? The spec for xmladd.mg doesn't say anything about Version.... This API has been working for me for a VERY long time (without Version).

    From the spec ....

    Fields accepted by HTTP POST:
    • ByteCount
      • required
      • must match the actual binary byte count of the image you're sending
    • MD5Sum
      • required
      • must match the md5 value of the binary file you're sending
    • AlbumID
      • required
      • The AlbumID you're adding this photo to
    • ResponseType
      • required
      • either "XML-RPC", "REST", "JSON" or "PHP" depending on your desired response formatting.
    • Caption
      • optional
      • Sets the Caption on the image
    Mark
Sign In or Register to comment.