SAAS-596: Store file size and hash in database
Updated schema and added filesize and md5_hash columns. Changed getFileSize functions to return the value stored in the database. Removed getFileSize from the cloud storage classes.
This commit is contained in:
parent
a1436bfebb
commit
6ccc634782
12 changed files with 238 additions and 53 deletions
|
@ -49,10 +49,7 @@ class CloudFile extends BaseCloudFile
|
|||
*/
|
||||
public function getFileSize()
|
||||
{
|
||||
if ($this->proxyStorageBackend == null) {
|
||||
$this->proxyStorageBackend = new ProxyStorageBackend($this->getStorageBackend());
|
||||
}
|
||||
return $this->proxyStorageBackend->getFileSize($this->getResourceId());
|
||||
return $this->getDbFilesize();
|
||||
}
|
||||
|
||||
public function getFilename()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue