code: public static function create(array $file)
      {
          if (is_array($file['tmp_name']) === false) {
              $tmp = (string) $file['tmp_name'];
  
              $size = $file['size'];
  
              $error = $file['error'];
  
              $original = $file['name'];
  
              $type = $file['type'];
  
              return new UploadedFile($tmp, $size, $error, $original, $type);
          }
  
          return self::nested($file);
      }
docs: Returns a \UploadedFile instance from $_FILES.
  
  @param  array $file
  @return \Psr\Http\Message\UploadedFileInterface