add extension to upload.php