addData:withFileName:andContentType:forKey: method

Same as above, but you can specify the content-type and file name.

Syntax

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