mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Allow importing .zip or .json file
This commit is contained in:
parent
162d22d85c
commit
9a63a9c44d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user