mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 07:57:33 -05: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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user