diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index b00beeb853..80fd255216 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -1184,8 +1184,8 @@ {{ $file->filename }} - - {{ @Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/assets/').$file->filename)) }} + + {{ @Helper::formatFilesizeUnits(Storage::size('private_uploads/assets/'.$file->filename)) }} @if ($file->note) @@ -1277,8 +1277,8 @@ {{ $file->filename }} - - {{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/assetmodels/').$file->filename)) }} + + {{ Helper::formatFilesizeUnits(Storage::size('private_uploads/assetmodels/'.$file->filename)) }} @if ($file->note) diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php index b6408d7de5..1f6b085a47 100755 --- a/resources/views/licenses/view.blade.php +++ b/resources/views/licenses/view.blade.php @@ -469,8 +469,8 @@ {{ $file->filename }} - - {{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/licenses/').$file->filename)) }} + + {{ Helper::formatFilesizeUnits(Storage::size('private_uploads/licenses/'.$file->filename)) }} diff --git a/resources/views/models/view.blade.php b/resources/views/models/view.blade.php index 93bd382c73..278b6a78fb 100755 --- a/resources/views/models/view.blade.php +++ b/resources/views/models/view.blade.php @@ -154,8 +154,8 @@ {{ $file->filename }} - - {{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/assetmodels/').$file->filename)) }} + + {{ Helper::formatFilesizeUnits(Storage::size('private_uploads/assetmodels/'.$file->filename)) }} @if ($file->note) diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php index 277439b9fe..c257bae1ae 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -842,7 +842,7 @@ {{ $file->filename }} - {{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/users/').$file->filename)) }} + {{ Helper::formatFilesizeUnits(Storage::size('private_uploads/users/'.$file->filename)) }}