Merge pull request #4681 from turbo124/v5-develop
fix for json documents presenting itself as file uploads
This commit is contained in:
commit
cec496b6a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue