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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue