forked from anarkrypto/simple-ipfs-file-uploader-via-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (44 loc) · 1.28 KB
/
index.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Simple IPFS file Uploader</title>
</head>
<style>
.container {
padding: 80px;
border: solid 1px gray;
}
#response {
width: 320px;
margin: 20px 0px;
text-align: left;
}
</style>
<body>
<center>
<div class="container">
<h2>Simple IPFS file uploader via Browser</h2>
<p>To use your local IPFS node, change the protocol to "http" and node to "127.0.0.1"
<div class="nodeConfig">
<p>
Protocol (http/https):
<input type="text" id="protocolIPFS" value="https">
</p>
<p>
IPFS Node:
<input type="text" id="nodeIPFS" value="ipfs.infura.io">
</p>
</div>
<input type="file" id="fileElem" multiple accept="*/*" onchange="handleFiles(this.files)">
<div>
<pre id="response" disabled>Response:</pre>
</div>
</div>
</center>
</body>
<script type="text/javascript" src="buffer.js"></script>
<script type="text/javascript" src="ipfs-http-client.js"></script>
<script type="text/javascript" src="ipfs-upload.js"></script>
</html>