addFile:withFileName:andContentType:forKey: method

Adds the contents of a local file to the request.

Syntax

- ( void ) addFile : ( id ) data withFileName : ( NSString * ) fileName andContentType : ( NSString * ) contentType forKey : ( NSString * ) key

Usage

You can specify the content-type and file name