mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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
|
public function handle() : ?Document
|
||||||
{
|
{
|
||||||
if(!$this->file)
|
if(is_array($this->file)) //return early if the payload is just JSON
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
$path = self::PROPERTIES[$this->type]['path'];
|
$path = self::PROPERTIES[$this->type]['path'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user