Update.php checks for empty file name before inserting