try out upload page on homepage

This commit is contained in:
hippoz 2020-10-05 00:00:20 +03:00
parent 583b451d37
commit 1e6e4defaa
2 changed files with 9 additions and 1 deletions

8
pages/upload.html Normal file
View file

@ -0,0 +1,8 @@
<h1>this is the upload page</h1>
<p>i think</p>
<form action='https://files.hippoz.xyz/api/upload' method="POST" enctype="multipart/form-data">
Password: <input type="password" name="password"> </br>
File name: <input type="text" name="filename"> </br>
<input type="file" name="file"/> </br>
<input type='submit' value='Upload!'/>
</form>

View file

@ -15,7 +15,7 @@ const onButtonClick = (buttonId) => {
break; break;
} }
case 'button-file-server': { case 'button-file-server': {
window.location.href = 'https://files.hippoz.xyz/'; A('#content-container').load('/pages/upload.html');
break; break;
} }
case 'button-git-server': { case 'button-git-server': {