fix(file): fix name:null error

This commit is contained in:
Marco Cavalli 2025-03-17 16:45:18 +01:00
parent 89f50364cd
commit 69b6f089e4

View file

@ -113,8 +113,8 @@ class FileController extends Controller
$file = File::whereId($id)->first();
$fields = $request->all();
if (is_null($fields['name'])) {
unset($fields['name']);
if (isset($fields['name']) && is_null($fields['name'])) {
$fields['name'] = "";
}
//Only from Analyzer