Help! SmugMug Upload faultCode 5?
spacegraym3
Registered Users Posts: 6 Beginner grinner
I am trying to write an application that uploads a photo. I am trying to use the SmugMug upload URL with the following parameters and I get back a faultCode of 5. Does anyone know what this means? I am able to login and get a session ID which is included in the upload parameters.
URL
===
http://upload.smugmug.com/
Parameters
=======
X-Smug-Keywords = AppTest
X-Smug-ResponseType = JSON
X-Smug-Latitude = 37.44885
X-Smug-Longitude = -122.158592
X-Smug-Pretty = true
X-Smug-FileName = photo_010.jpg
X-Smug-AlbumID = 18012333
X-Smug-SessionID = <session id>
X-Smug-Version = 1.2.0
Here is the response I get back:
bytesSent = 72675
responseCode = null
response = <?xml version="1.0" encoding="utf-8"?>
<methodResponse><fault><value><struct><member><name>method</name><value><string/></value></member><member><name>faultCode</name><value><int>5</int></value></member><member><name>faultString</name><value><string>system error</string></value></member></struct></value></fault></methodResponse>
URL
===
http://upload.smugmug.com/
Parameters
=======
X-Smug-Keywords = AppTest
X-Smug-ResponseType = JSON
X-Smug-Latitude = 37.44885
X-Smug-Longitude = -122.158592
X-Smug-Pretty = true
X-Smug-FileName = photo_010.jpg
X-Smug-AlbumID = 18012333
X-Smug-SessionID = <session id>
X-Smug-Version = 1.2.0
Here is the response I get back:
bytesSent = 72675
responseCode = null
response = <?xml version="1.0" encoding="utf-8"?>
<methodResponse><fault><value><struct><member><name>method</name><value><string/></value></member><member><name>faultCode</name><value><int>5</int></value></member><member><name>faultString</name><value><string>system error</string></value></member></struct></value></fault></methodResponse>
0
Comments
http://msphoto.smugmug.com
http://twitter.com/tasmanic
Thanks,
David
SmugMug API Developer
My Photos
I figured out that what I was using was not setting the HTTP headers (and instead was setting POST parameters). However, I modified the code to set the headers and I am not getting an error message back but it is also not showing up posted in my target gallery.
I am using Sencha Touch and PhoneGap on iOS which makes posting the code a bit of a challenge.
When you say you see errors related to the AlbumID, is the error that I used the wrong ID? Thank you!
Since I am using PhoneGap, it is difficult to share the code. But here is some of the most relevant parts to see if it helps.
Now that I have the upload method setting the HTTP headers correctly via a RAW POST method, I am not getting back any errors but I am also not seeing my image on SmugMug. I have looked in the target album as well as searched my photos via the keyword to no avail.
Any help you can provide would be fantastic. Thank you!
Cheers,
David
SmugMug API Developer
My Photos