1.压缩文件,用途比如QQ的换皮肤。
// Create [SSZipArchive createZipFileAtPath: zipPath withContentsOfDirectory: sampleDataPath]; // Unzip [SSZipArchive unzipFileAtPath:zipPath toDestination: unzipPath];
2.需要获取请求头的数据:
--\r\n
Content-Disposition:form-data;name="";filename=""\r\n
Content-type:文件的MIMEType\r\n
\r\n
文件数据
\r\n
--\r\n
3.MIMEType
png -> image/png
js -> application/javascript
text/txt -> text/plain
son -> application/json