mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Set file name variable
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
653ad562a4
commit
54b24434e1
|
@ -913,6 +913,7 @@ class AssetsController extends Controller
|
|||
*/
|
||||
if ($asset->isValid() && $asset->save()) {
|
||||
|
||||
$file_name = null;
|
||||
// Create the image (if one was chosen.)
|
||||
if ($request->hasFile('image')) {
|
||||
$file_name = $request->handleFile('private_uploads/audits/', 'audit-'.$asset->id, $request->file('image'));
|
||||
|
|
Loading…
Reference in a new issue