return response()->json([
'status' => 'server',
'id' => $file->id,
'value' => $file->full_name,
'type' => $file->type,
'icon' => $file->icon,
'item' => $file,
'message' => [
'text' => __('system.msg'),
'title' => __('system.title')
]]);
After upload i would to return more data like icon to use in custom template. But only id and value are assigned to object so after uploading i have blank icon. I tried onAfterFileUpload event with updateItem() and refresh() but with no luck. I am not sure how refresh filemanager view…