Код:
<style>
.uploadButton {
display: block;
width: 200px;
background: #796E6D;
padding: 10px;
color: #FFF;
font-size: 16px;
font-weight: bold;
font-family: Tahoma;
text-align: center;
border-radius: 10px;
cursor: pointer;
}
.uploadButton:hover {
background: #655D5C;
}
</style>
<form action="https://foxyweb.ru/api/upload.php" method="post" enctype="multipart/form-data">
<!-- <input type="file" name="photo"><br> -->
<center><label for="uploadbtn" class="uploadButton">Загрузить файл</label></center>
<input style="opacity: 0; z-index: -1;" type="file" name="photo" id="uploadbtn">
<input type="submit" value="Загрузить"><br>
</form>