CC-5896: Store cloud files in separate table, inherited from cc_files
For cloud files, return the original filename when downloading a file instead of the cloud object name
This commit is contained in:
parent
ecb072b84c
commit
f6aa2e5a3b
|
@ -84,8 +84,7 @@ class CcFiles extends BaseCcFiles {
|
||||||
|
|
||||||
public function getAbsoluteFilePath()
|
public function getAbsoluteFilePath()
|
||||||
{
|
{
|
||||||
$music_dir = Application_Model_MusicDir::getDirByPK($this->
|
$music_dir = Application_Model_MusicDir::getDirByPK($this->getDbDirectory());
|
||||||
_file->getDbDirectory());
|
|
||||||
if (!$music_dir) {
|
if (!$music_dir) {
|
||||||
throw new Exception("Invalid music_dir for file in database.");
|
throw new Exception("Invalid music_dir for file in database.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ class CloudFile extends BaseCloudFile
|
||||||
|
|
||||||
public function getFilename()
|
public function getFilename()
|
||||||
{
|
{
|
||||||
return $this->getResourceId();
|
return $this->getDbFilepath();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isValidFile()
|
public function isValidFile()
|
||||||
|
|
Loading…
Reference in New Issue