-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupload.html
29 lines (24 loc) · 895 Bytes
/
upload.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<script src="resources/jquery.min.js"></script>
<script src="resources/upload-functions.js"></script>
<body onload=listFiles();>
<form action="upload.php" method="post" enctype="multipart/form-data">
Select file to upload:
<input type="file" name="fileToUpload" id="fileToUpload"><br>
<input type="submit" value="Upload" name="submit" onclick='document.getElementById("file_upload_name").value=top.document.getElementById("target").value'>
<input id=file_upload_name type=hidden name=domain value=checkDomainPlz>
</form><br>
--------------------------------
<br><br>
<input id=file_name name=file_name placeholder='Name of file'><br>
<br>
<textarea id=file_data>
</textarea>
<button onclick=saveAsFile()>Save As File</button><br><br>
--------------------------------<br>
List :<br><br>
<div id=files_list>
</div>
</body>
</html>