v2 Upload, fails with "unknown file type"
sjayapathi
Registered Users Posts: 4 Beginner grinner
I'm attempting an upload via http://upload.smugmug.com, using OAuth. My POST headers look like this
X-Smug-AlbumUri - /api/v2/album/xxxxx
X-Smug-ResponseType - JSON
X-Smug-Version - v2
Content-Type - image/jpeg
My form data has the file contents. However, I always get this as my response -
I'm not entirely sure why I'm getting that... any inputs on what's happening here would be appreciated.
X-Smug-AlbumUri - /api/v2/album/xxxxx
X-Smug-ResponseType - JSON
X-Smug-Version - v2
Content-Type - image/jpeg
My form data has the file contents. However, I always get this as my response -
{ "stat": "fail", "method": "smugmug.images.upload", "code": 64, "message": "unknown file type" }
I'm not entirely sure why I'm getting that... any inputs on what's happening here would be appreciated.
0
Comments
Sorcerer and API Guy at SmugMug