I am sending a zip file to server via HTTPREQUEST. What should be the Content-Type
HTTP header value for this kind of file?
The file is a ZIP archive that contains images on type PNG.
Thanks
The standard MIME type for ZIP files is application/zip .
ZIP files work in much the same way as a standard folder on your computer. They contain data and files together in one place. But with zipped files, the contents are compressed, which reduces the amount of data used by your computer. Another way to describe ZIP files is as an archive.
ZIP is an archive file format that supports lossless data compression. A ZIP file may contain one or more files or directories that may have been compressed. The ZIP file format permits a number of compression algorithms, though DEFLATE is the most common.
.zip application/zip, application/octet-stream
The standard MIME type for ZIP files is application/zip
. The types for the files inside the ZIP does not matter for the MIME type.
As always, it ultimately depends on your server setup.
[request setValue:@"application/zip" forHTTPHeaderField:@"Content-Type"];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With