ZIP - radishengine/drowsy GitHub Wiki
http://fileformats.archiveteam.org/wiki/ZIP
Main Type: application/zip
✓
Extension: .zip
Type Parameters
x-join-parts
❌ (optional): If this is a multi-part archive that has been joined together fromapplication/x-joinable
parts, this will be a comma-separated list of byte lengths for each part of the file, in order.
Splits to
If this is a single-part archive:
- ZIP Chunks (
chunk/zip
❌)
If this is the final part of a multi-part archive:
application/x-joinable; to=application/zip; order=[number]; final=true
❌
(...where[number]
will be the total number of parts in the archive, minus 1.)
Join Extensions
.z00
:application/x-joinable; to=application/zip; order=0
.z01
:application/x-joinable; to=application/zip; order=1
- (...)
.z98
:application/x-joinable; to=application/zip; order=98
.z99
:application/x-joinable; to=application/zip; order=99
Chunks
Chunk Type: chunk/zip
❌
Use the which
parameter to determine the chunk subtype:
trailer
Chunk: central
Chunk: local
Chunk: Splits to:
If this is an uncompressed/unencrypted record, one of the following:
- JPEG (
image/jpeg
✓) - ...a data type looked up from Central Dispatch by file extension ('application/octet-stream` if the extension is not listed)
If this is a compressed/encrypted record, one of the following (very likely to be "Deflated"):
- Deflated (
application/x-deflated
❌) - Deflate64'd (
application/x-deflated; variant=deflate64
❌) - LZW Shrunk (
application/x-lzw; variant=shrink
❌) - Reduced, Factor 1 (
application/x-reduced; factor=1
❌) - Reduced, Factor 2 (
application/x-reduced; factor=2
❌) - Reduced, Factor 3 (
application/x-reduced; factor=3
❌) - Reduced, Factor 4 (
application/x-reduced; factor=4
❌) - Imploded (IBM Terse) (
application/x-ibm-terse; variant=implode
❌) - DCL Imploded (IBM Terse) (
application/x-ibm-terse; variable=dcl-implode
❌) - bzip2 (
application/x-bzip2
❌) - lzma (
application/x-lzma
❌)
- IBM Terse (
application/x-ibm-terse; variant=new
❌)
- lz77 (
application/x-lz77
❌) - wavpack (
audio/x-wavpack
❌) - ppmd (
application/x-ppmd; version=i; rev=1
❌)
- AES (
application/x-aes
❌)
...with an additional type parameter: from
, which will be set to a type name (percent-encoded if necessary) looked up from Central Dispatch by file extension. If the extension is not listed, from
will either be set to application/octet-stream
, or not be set at all.