mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 15:44:11 -08:00
Merge pull request #11723 from snipe/fixes/fail_with_error_when_uploaded_file_does_not_exist
Fixed crash on Asset View if file doesn’t exist on server
This commit is contained in:
commit
e2dec5d5d7
|
@ -1184,8 +1184,8 @@
|
||||||
<td>
|
<td>
|
||||||
{{ $file->filename }}
|
{{ $file->filename }}
|
||||||
</td>
|
</td>
|
||||||
<td data-value="{{ filesize(storage_path('private_uploads/assets/').$file->filename) }}">
|
<td data-value="{{ @filesize(storage_path('private_uploads/assets/').$file->filename) }}">
|
||||||
{{ Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/assets/').$file->filename)) }}
|
{{ @Helper::formatFilesizeUnits(filesize(storage_path('private_uploads/assets/').$file->filename)) }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if ($file->note)
|
@if ($file->note)
|
||||||
|
|
Loading…
Reference in a new issue