Problem uploading using API

plymptonplympton Registered Users Posts: 9 Beginner grinner
I'm running some test code to upload to SmugMug, but for some reason, nothing ever shows up in my test gallery. Is there a processing delay, and I should just check back... tomorrow? From what I can see, I'm not getting an error code in the response, so... what's up?

I seem to get a response_code of 200 no matter what I do - send like I think it should it send with random junk - invalid AlbumID, etc..

Anyone??

Got a Session ID
SessionID: 3ee89e6ebc6f898de042d63139c7145d
Hit Enter To Continue:
Changing to image directory...
Full starting path: /var/www/img/
Sending a photo to SmugMug via http_put...
Array
(
[Content-Length] => 85850
[Content-MD5] => aab322bf5c7f5f46ce5c519c046efa2c
[X-Smug-SessionID] => 3ee89e6ebc6f898de042d63139c7145d
[X-Smug-Version] => 1.2.0
[X-Smug-ResponseType] => JSON
[X-Smug-AlbumID] => 3469217
[X-Smug-FileName] => R1100GS-96.jpg
)
Response from server: Array
(
[effective_url] => http://upload.smugmug.com/R1100GS-96.jpg
[response_code] => 200
[total_time] => 0.888447
[namelookup_time] => 0.002016
[connect_time] => 0.031672
[pretransfer_time] => 0.031797
[size_upload] => 85850
[size_download] => 126
[speed_download] => 141
[speed_upload] => 96629
[header_size] => 353
[request_size] => 160
[ssl_verifyresult] => 0
[filetime] => -1
[content_length_download] => 126
[content_length_upload] => 85850
[starttransfer_time] => 0.069831
[content_type] => text/xml;charset=iso-8859-1
[redirect_time] => 0
[redirect_count] => 0
[connect_code] => 0
[httpauth_avail] => 0
[proxyauth_avail] => 0
[os_errno] => 0
[num_connects] => 1
[ssl_engines] => Array
(
[0] => dynamic
)
[cookies] => Array
(
)
[error] =>
)
Hit Enter To Continue:
Logging out of SmugMug...
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<method>smugmug.logout</method>
<Logout>
<Successful />
</Logout>
</rsp>Logged Out...

Comments

Sign In or Register to comment.