verify_file_md5


verify_file_md5 ( $filename, $expected_md5 )

Parameters:
  • (string) $filename The filename to check the MD5 of.
  • (string) $expected_md5 The expected MD5 of the file, either a base64 encoded raw md5, or a hex-encoded md5
Returns:
  • (bool|object) WP_Error on failure, true on success, false when the MD5 format is unknown/unexpected
Defined at:

Description

Calculates and compares the MD5 of a file to its expected value.

Related Functions

get_file_data, wp_verify_nonce, validate_file_to_edit, remove_filter, get_filesystem_method

Top Google Results

User discussions

wpseek mobile