Fix documentation for appendPartWithFileURL:name:error:.
The documentation said that the values for filename and the Content-Type header was being obtained from a NSURLResponse, but since this is a request, no response is available yet. The documentation has been changed to reflect better where those values really come from.
This commit is contained in:
parent
cb3744a808
commit
574792d9cb
1 changed files with 1 additions and 1 deletions
|
|
@ -543,7 +543,7 @@ extern NSTimeInterval const kAFUploadStream3GSuggestedDelay;
|
||||||
|
|
||||||
@return `YES` if the file data was successfully appended, otherwise `NO`.
|
@return `YES` if the file data was successfully appended, otherwise `NO`.
|
||||||
|
|
||||||
@discussion The filename and MIME type for this data in the form will be automatically generated, using `NSURLResponse` `-suggestedFilename` and `-MIMEType`, respectively.
|
@discussion The filename and MIME type for this data in the form will be automatically generated, using the last path component of the `fileURL` and system associated MIME type for the `fileURL` extension, respectively.
|
||||||
*/
|
*/
|
||||||
- (BOOL)appendPartWithFileURL:(NSURL *)fileURL
|
- (BOOL)appendPartWithFileURL:(NSURL *)fileURL
|
||||||
name:(NSString *)name
|
name:(NSString *)name
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue