Update upload.php

License check