Adds the contents of a local file to the request, clearing any others with the same key.
Syntax
-
(
void
)
setFile
:
(
id
)
data
withFileName
:
(
NSString *
)
fileName
andContentType
:
(
NSString *
)
contentType
forKey
:
(
NSString *
)
key
Usage
You can specify the content-type and file name