DcsHttpUploadConfig

Description

A class for the HTTP upload configuration.

Members

Type Name Description
Property (nonatomic, strong) NSString * url Specifies the URL for HTTP upload.
Property (nonatomic, strong) NSString * name The field name of the uploaded file when uploading through POST.
Property (nonatomic, assign) DcsUploadMethodEnum uploadMethod Specifies the uploading method, either DUME_POST or DUME_PUT.
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.
typedef enum DcsUploadMethodEnum
DUME_POST = 0x0001 HTTP Post method
DUME_PUT HTTP Put 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.
Remarks

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