fix for json documents presenting itself as file uploads

This commit is contained in:
David Bomba 2021-01-14 07:53:42 +11:00
parent 1dc932b85e
commit f5c37ac2f4

View File

@ -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'];