mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user