Merge branch 'develop'

This commit is contained in:
snipe 2017-11-06 12:39:00 -08:00
commit 43f2a530f5

View file

@ -930,8 +930,8 @@ class AssetsController extends Controller
$destinationPath = config('app.private_uploads').'/assets'; $destinationPath = config('app.private_uploads').'/assets';
if ($request->hasFile('image')) { if ($request->hasFile('assetfile')) {
foreach ($request->file('image') as $file) { foreach ($request->file('assetfile') as $file) {
$extension = $file->getClientOriginalExtension(); $extension = $file->getClientOriginalExtension();
$filename = 'hardware-'.$asset->id.'-'.str_random(8); $filename = 'hardware-'.$asset->id.'-'.str_random(8);
$filename .= '-'.str_slug($file->getClientOriginalName()).'.'.$extension; $filename .= '-'.str_slug($file->getClientOriginalName()).'.'.$extension;