DcsHttpUploadConfig

Description

A class for the HTTP upload configuration.

Members

Type Name Description
Property (nonatomic, strong) NSString * url Specifies the URL for HTTP/HTTPS upload.
Property (nonatomic, strong) NSString * name The field name of the uploaded file when uploading through POST. The default value is "name".
Property (nonatomic, assign) DcsUploadMethodEnum uploadMethod Specifies the uploading method.
Property (nonatomic, assign) DcsDataFormatEnum dataFormat Specifies the data format, either DDFE_BINARY or DDFE_BASE64.
Property (nonatomic,strong) NSDictionary * formField Specifies the HTML form feilds.
Property (nonatomic,strong) NSDictionary * header Specifies the HTTP header.
Property (nonatomic,strong) NSString * filePrefix Specifies the prefix of the file name. The default value is nil.


typedef enum DcsUploadMethodEnum
DUME_POST = 0x0001 HTTP Post method

typedef enum DcsDataFormatEnum
DDFE_BINARY = 0x0010 Binary
DDFE_BASE64 Base64 string
(nonatomic, strong) NSString * name
Description The field name of the uploaded file when uploading through POST. The default value is "name".
Remarks

If the field name of the uploaded file is set to "dcsfile", you can get the file data through _FILE["dcsfile"] on the server side.

Is this page helpful?

Leave a Reply

Your email address will not be published.