Revert "Update upload.php"

This reverts commit 4db294708f06c856975190b1f4d1669848942472.
Revert "Revert "Update upload.php""

This reverts commit 3ea380c4fde5f266e0311808449927256e28ab6e.
Revert "3"

This reverts commit 72f1809295f8dfc3962dc4813bd8ac6a87a61d34.
Revert "Update upload.php"

This reverts commit 4db294708f06c856975190b1f4d1669848942472.