|
@@ -33,7 +33,8 @@ class FileSystemServiceProvider extends ServiceProvider
|
|
|
|
|
|
public function url($path)
|
|
public function url($path)
|
|
{
|
|
{
|
|
- return "/api/download?filename={$path}&bucket={$this->config['bucket']}";
|
|
+ $filename = basename($path);
|
|
|
|
+ return "/api/download?filename={$filename}&bucket={$this->config['bucket']}";
|
|
}
|
|
}
|
|
};
|
|
};
|
|
});
|
|
});
|