Removed amazon s3 signature from pypo cache file name.
Stopped pyppo from downloading amazon s3 files if it already exists in the pypo cache dir.
This commit is contained in:
parent
f775bedb49
commit
9726fb80d2
5 changed files with 45 additions and 22 deletions
|
@ -895,9 +895,11 @@ SQL;
|
|||
//row is from "file"
|
||||
$media_id = $item['file_id'];
|
||||
$storedFile = Application_Model_StoredFile::RecallById($media_id);
|
||||
$uri = $storedFile->getFilePath();
|
||||
$file = $storedFile->getPropelOrm();
|
||||
$uri = $file->getAbsoluteFilePath();
|
||||
|
||||
$object_name = null;
|
||||
if ($storedFile->getPropelOrm() instanceof CloudFile) {
|
||||
if ($file instanceof CloudFile) {
|
||||
$object_name = $storedFile->getResourceId();
|
||||
}
|
||||
$filesize = $storedFile->getFileSize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue