mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Fixed #11742: display correct file sizes when using S3(-like) storage
This commit is contained in:
parent
96ec96ff7f
commit
f60ea9581d
|
@ -1184,8 +1184,8 @@
|
|||
<td>
|
||||
{{ $file->filename }}
|
||||
</td>
|
||||
<td data-value="{{ @filesize(storage_path('private_uploads/assets/').$file->filename) }}">
|
||||
{{ @Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/assets/').$file->filename)) }}
|
||||
<td data-value="{{ @Storage::size('private_uploads/assets/'.$file->filename) }}">
|
||||
{{ @Helper::formatFilesizeUnits(Storage::size('private_uploads/assets/'.$file->filename)) }}
|
||||
</td>
|
||||
<td>
|
||||
@if ($file->note)
|
||||
|
@ -1277,8 +1277,8 @@
|
|||
<td>
|
||||
{{ $file->filename }}
|
||||
</td>
|
||||
<td data-value="{{ filesize(storage_path('private_uploads/assetmodels/').$file->filename) }}">
|
||||
{{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/assetmodels/').$file->filename)) }}
|
||||
<td data-value="{{ Storage::size('private_uploads/assetmodels/'.$file->filename) }}">
|
||||
{{ Helper::formatFilesizeUnits(Storage::size('private_uploads/assetmodels/'.$file->filename)) }}
|
||||
</td>
|
||||
<td>
|
||||
@if ($file->note)
|
||||
|
|
|
@ -469,8 +469,8 @@
|
|||
<td>
|
||||
{{ $file->filename }}
|
||||
</td>
|
||||
<td data-value="{{ filesize(storage_path('private_uploads/licenses/').$file->filename) }}">
|
||||
{{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/licenses/').$file->filename)) }}
|
||||
<td data-value="{{ Storage::size('private_uploads/licenses/'.$file->filename) }}">
|
||||
{{ Helper::formatFilesizeUnits(Storage::size('private_uploads/licenses/'.$file->filename)) }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
|
|
@ -154,8 +154,8 @@
|
|||
<td>
|
||||
{{ $file->filename }}
|
||||
</td>
|
||||
<td data-value="{{ filesize(storage_path('private_uploads/assetmodels/').$file->filename) }}">
|
||||
{{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/assetmodels/').$file->filename)) }}
|
||||
<td data-value="{{ Storage::size('private_uploads/assetmodels/'.$file->filename) }}">
|
||||
{{ Helper::formatFilesizeUnits(Storage::size('private_uploads/assetmodels/'.$file->filename)) }}
|
||||
</td>
|
||||
<td>
|
||||
@if ($file->note)
|
||||
|
|
|
@ -842,7 +842,7 @@
|
|||
{{ $file->filename }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/users/').$file->filename)) }}
|
||||
{{ Helper::formatFilesizeUnits(Storage::size('private_uploads/users/'.$file->filename)) }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
|
Loading…
Reference in a new issue