CB-9790 Align FileUploadOptions fileName and mimeType default parameter values to the docs on iOS

To match the documentation for FileUpload,
change fileName default value to "image.jpg"
change mimeType default value to "image/jpg"

github: close #98
This commit is contained in:
jason-ong
2015-08-21 17:35:42 +08:00
committed by daserge
parent 83ee62514a
commit f8b0f82dfa
+2 -2
View File
@@ -143,8 +143,8 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream)
NSString* target = [command argumentAtIndex:0];
NSString* server = [command argumentAtIndex:1];
NSString* fileKey = [command argumentAtIndex:2 withDefault:@"file"];
NSString* fileName = [command argumentAtIndex:3 withDefault:@"no-filename"];
NSString* mimeType = [command argumentAtIndex:4 withDefault:nil];
NSString* fileName = [command argumentAtIndex:3 withDefault:@"image.jpg"];
NSString* mimeType = [command argumentAtIndex:4 withDefault:@"image/jpeg"];
NSDictionary* options = [command argumentAtIndex:5 withDefault:nil];
// BOOL trustAllHosts = [[command argumentAtIndex:6 withDefault:[NSNumber numberWithBool:YES]] boolValue]; // allow self-signed certs
BOOL chunkedMode = [[command argumentAtIndex:7 withDefault:[NSNumber numberWithBool:YES]] boolValue];