diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.php index f4861f4db2..ca13e6e2fe 100755 --- a/app/Http/Controllers/AssetsController.php +++ b/app/Http/Controllers/AssetsController.php @@ -930,8 +930,8 @@ class AssetsController extends Controller $destinationPath = config('app.private_uploads').'/assets'; - if ($request->hasFile('image')) { - foreach ($request->file('image') as $file) { + if ($request->hasFile('assetfile')) { + foreach ($request->file('assetfile') as $file) { $extension = $file->getClientOriginalExtension(); $filename = 'hardware-'.$asset->id.'-'.str_random(8); $filename .= '-'.str_slug($file->getClientOriginalName()).'.'.$extension;