diff --git a/app/Jobs/Company/CompanyImport.php b/app/Jobs/Company/CompanyImport.php index 3e40f5f2f8dd..216ab6a1224e 100644 --- a/app/Jobs/Company/CompanyImport.php +++ b/app/Jobs/Company/CompanyImport.php @@ -220,6 +220,10 @@ class CompanyImport implements ShouldQueue private function unzipFile() { + + if(mime_content_type(Storage::path($this->file_location)) == 'text/plain') + return Storage::path($this->file_location); + $path = TempFile::filePath(Storage::get($this->file_location), basename($this->file_location)); $zip = new ZipArchive();