Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-10036] iOS: HTTPClient does not support sending TiFile object #2608

Merged
merged 1 commit into from
Jul 20, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions iphone/Classes/TiNetworkHTTPClientProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,10 @@ -(void)send:(id)args
}
}
}
else if ([arg isKindOfClass:[TiBlob class]])
else if ([arg isKindOfClass:[TiBlob class]]
|| [arg isKindOfClass:[TiFile class]])
{
TiBlob *blob = (TiBlob*)arg;
TiBlob *blob = [arg isKindOfClass:[TiBlob class]] ? (TiBlob *)arg : [(TiFile *)arg blob];
if ([blob type] == TiBlobTypeFile)
{
// could be large if file so let's tell the
Expand All @@ -548,7 +549,6 @@ -(void)send:(id)args
[request appendPostData:data];
}
}
//TODO: support TiFile post 1.4
}
}

Expand Down