-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can't upload image by using API Client #36
Comments
You need to pass the blog name instead of an empty string to the |
I was getting the same error. Problem was I was passing the blog title shown in tumblr.com while I had to pass blog name. Please don't confuse with name and title of blog.
|
Hello All I have same issue(cant upload image to tumblr).However when I try to upload image with simulator(i.e running project in simulator) it works perfectly but when I run on device(making pod library for device and so on) I am able to authenticate but cant upload image. I have taken care of blog name as suggested by vksaini13.Below is my code. //This code fetches user info,I am using blog name from this...
//Posting photo. Error posting to Tumblr Error Domain=Request failed Code=400 "The operation couldn’t be completed. (Request failed error 400.)" */
// |
Are you able to confirm (either by setting a breakpoint or using an HTTP proxy like Charles) that you're actually sending a multipart payload over the wire? |
hello guys, |
I can authenticate successfully:
[[TMAPIClient sharedInstance] authenticate:@"myapp" callback:^(NSError *error) {
if (error)
NSLog(@"Authentication failed: %@", error);
else
{
[[TMAPIClient sharedInstance] photo:@""
filePathArray:@[[fileURL path]]
contentTypeArray:@[@"image/png"]
parameters:@{@"caption" : @"Caption"}
callback:^(id response, NSError *error) {
if (error)
NSLog(@"Error posting to Tumblr %@", error);
}];
TMTumblrSDK from pods.
Error Domain=Request failed Code=404 "The operation couldn’t be completed. (Request failed error 404.)"
The text was updated successfully, but these errors were encountered: