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:
drigato 2014-10-22 14:17:44 -04:00
parent f775bedb49
commit 9726fb80d2
5 changed files with 45 additions and 22 deletions

View file

@ -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();