context->zipReader->fileExists($value)) { $fail('validation.zip_file')->translate(); } if (!empty($this->acceptedMimes)) { $fileMime = $this->context->zipReader->sniffFileMime($value); if (!in_array($fileMime, $this->acceptedMimes)) { $fail('validation.zip_file_mime')->translate([ 'attribute' => $attribute, 'validTypes' => implode(',', $this->acceptedMimes), 'foundType' => $fileMime ]); } } } }