mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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()
|
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));
|
$path = TempFile::filePath(Storage::get($this->file_location), basename($this->file_location));
|
||||||
|
|
||||||
$zip = new ZipArchive();
|
$zip = new ZipArchive();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user