Retrieve storage correctly, filename is not the mountpoint
This commit is contained in:
parent
65f1e52107
commit
b035626709
|
@ -117,7 +117,7 @@ class OC_Files {
|
|||
}else{
|
||||
header('Content-Type: '.\OC\Files\Filesystem::getMimeType($filename));
|
||||
header("Content-Length: ".\OC\Files\Filesystem::filesize($filename));
|
||||
$storage = \OC\Files\Filesystem::getStorage($filename);
|
||||
list($storage) = \OC\Files\Filesystem::resolvePath($filename);
|
||||
if ($storage instanceof \OC\File\Storage\Local) {
|
||||
self::addSendfileHeader(\OC\Files\Filesystem::getLocalFile($filename));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue