mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Merge pull request #4681 from turbo124/v5-develop
fix for json documents presenting itself as file uploads
This commit is contained in:
commit
cec496b6a0
@ -66,7 +66,7 @@ class UploadFile implements ShouldQueue
|
||||
*/
|
||||
public function handle() : ?Document
|
||||
{
|
||||
if(!$this->file)
|
||||
if(is_array($this->file)) //return early if the payload is just JSON
|
||||
return null;
|
||||
|
||||
$path = self::PROPERTIES[$this->type]['path'];
|
||||
|
Loading…
Reference in New Issue
Block a user