Open sidedwards opened 4 years ago
This helps to resolve the issue:
public function file_is_gzipped( $file ) {
$is_gzipped = false;
if ( ! $this->filesystem->is_file( $file ) ) {
return $is_gzipped;
}
$mime = wp_check_filetype( $file );
if ( false === $mime['type'] && function_exists( 'mime_content_type' ) ) {
$mime['type'] = mime_content_type( $file );
}
if ( in_array( $mime['type'], array( 'application/x-gzip', 'application/gzip' ) ) ) {
$is_gzipped = true;
}
return $is_gzipped;
}
Trying to import a gzip sql file and it gets stuck on "Parsing SQL file, please wait". Here is the error thrown in the logs.