diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php
index 698923c57..e40237207 100644
--- a/views/bootstrap/class.ViewDocument.php
+++ b/views/bootstrap/class.ViewDocument.php
@@ -308,7 +308,7 @@ $(document).ready( function() {
foreach($files as $file) {
- $file_exists=file_exists($dms->contentDir . $file->getPath());
+ $file_exists = $file->exists();//file_exists($dms->contentDir . $file->getPath());
$responsibleUser = $file->getUser();
@@ -344,7 +344,7 @@ $(document).ready( function() {
print "
".htmlspecialchars($file->getOriginalFileName())."\n";
if ($file_exists) {
$realmimetype = $file->getRealMimeType();
- print "".SeedDMS_Core_File::format_filesize(filesize($dms->contentDir . $file->getPath())) ." bytes, ".htmlspecialchars($file->getMimeType())."";
+ print "".SeedDMS_Core_File::format_filesize($file->size()) ." bytes, ".htmlspecialchars($file->getMimeType())."";
} else print "".htmlspecialchars($file->getMimeType())." - ".getMLText("document_deleted")."";
print "".getMLText("uploaded_by")." getEmail())."\">".htmlspecialchars($responsibleUser->getFullName())."";
@@ -703,7 +703,7 @@ $(document).ready( function() {
$previewwidthdetail = $this->params['previewWidthDetail'];
// verify if file exists
- $file_exists=file_exists($dms->contentDir . $latestContent->getPath());
+ $file_exists = $latestContent->exists(); //file_exists($dms->contentDir . $latestContent->getPath());
$status = $latestContent->getStatus();
@@ -1717,4 +1717,3 @@ $(document).ready( function() {
$this->htmlEndPage();
} /* }}} */
}
-?>