Set file name variable

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-16 19:56:58 +01:00
parent 653ad562a4
commit 54b24434e1

View file

@ -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'));