Deleted obsolete file updatefile.php and rewrote editfile.php completly