Add the newly uploaded row to the table

This commit is contained in:
snipe
2015-09-23 19:18:28 -07:00
parent 567cd4847b
commit ff6fe331f3
3 changed files with 9 additions and 8 deletions
+3 -2
View File
@@ -685,8 +685,9 @@ class AssetsController extends AdminController
$fixed_filename = str_replace(' ','-',$file->getClientOriginalName());
$file->move($path, date('Y-m-d-his').'-'.$file->getClientOriginalName());
$name = $file->getClientOriginalName();
$results[] = compact('name');
$name = date('Y-m-d-his').'-'.$fixed_filename;
$filesize = Setting::fileSizeConvert(filesize($path.'/'.$name));
$results[] = compact('name', 'filesize');
}
}