public function getUploadPath(UploadedFile $file)
    {
        if (($path = $this->uploadPath)) {
            if (is_callable($path)) {
                $path = call_user_func($path, $file);
            }

            return trim($path, '/');
        }

        return $this->getDefaultUploadPath($file);
    }