Minor formatting fixes
This commit is contained in:
parent
f9a0cbff3f
commit
167aeb1be0
2 changed files with 3 additions and 2 deletions
|
|
@ -564,7 +564,7 @@ extern NSTimeInterval const kAFUploadStream3GSuggestedDelay;
|
|||
name:(NSString *)name
|
||||
fileName:(NSString *)fileName
|
||||
mimeType:(NSString *)mimeType
|
||||
error:(NSError *__autoreleasing *)error;
|
||||
error:(NSError * __autoreleasing *)error;
|
||||
|
||||
/**
|
||||
Appends the HTTP header `Content-Disposition: file; filename=#{filename}; name=#{name}"` and `Content-Type: #{mimeType}`, followed by the encoded file data and the multipart form boundary.
|
||||
|
|
|
|||
|
|
@ -821,6 +821,7 @@ NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2;
|
|||
|
||||
NSString *fileName = [fileURL lastPathComponent];
|
||||
NSString *mimeType = AFContentTypeForPathExtension([fileURL pathExtension]);
|
||||
|
||||
return [self appendPartWithFileURL:fileURL name:name fileName:fileName mimeType:mimeType error:error];
|
||||
}
|
||||
|
||||
|
|
@ -828,7 +829,7 @@ NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2;
|
|||
name:(NSString *)name
|
||||
fileName:(NSString *)fileName
|
||||
mimeType:(NSString *)mimeType
|
||||
error:(NSError *__autoreleasing *)error
|
||||
error:(NSError * __autoreleasing *)error
|
||||
{
|
||||
NSParameterAssert(fileURL);
|
||||
NSParameterAssert(name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue