Fixed download URLs for non-cloud files
This commit is contained in:
parent
3885abbdb8
commit
bfd6ef72b1
3 changed files with 3 additions and 10 deletions
|
@ -56,19 +56,11 @@ class Application_Service_MediaService
|
|||
throw new FileNotFoundException();
|
||||
}
|
||||
$filepath = $media->getFilePath();
|
||||
// Make sure we don't have some wrong result beecause of caching
|
||||
clearstatcache();
|
||||
$media = Application_Model_StoredFile::RecallById($fileId);
|
||||
if ($media == null) {
|
||||
throw new FileNotFoundException();
|
||||
}
|
||||
|
||||
// Make sure we don't have some wrong result beecause of caching
|
||||
clearstatcache();
|
||||
|
||||
if ($media->getPropelOrm()->isValidPhysicalFile()) {
|
||||
$filename = $media->getPropelOrm()->getFilename();
|
||||
|
||||
//Download user left clicks a track and selects Download.
|
||||
if (!$inline) {
|
||||
//We are using Content-Disposition to specify
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue