assertZip.php
Table of Contents
Functions
- assertZip() : bool
- Validates that a file is a zip archive.
Functions
assertZip()
Validates that a file is a zip archive.
assertZip(string $filePath[, bool $strictMode = false ]) : bool
Parameters
- $filePath : string
-
Path to the file to validate.
- $strictMode : bool = false
-
If true, performs deep validation using file contents (see validateZipStructure()). If false, only checks the extension and the basic MIME type.
Tags
Return values
bool —True if the file is a valid zip archive, false otherwise.