Skip to content

Commit 833c415

Browse files
save file
1 parent 2da56f2 commit 833c415

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
3+
# file-server.js
4+
5+
## Description
6+
7+
This server can run locally and allow access to the local filesystem from the browser / javascript through https requests
8+
9+
```
10+
11+
var res = await fetch('https://localhost:3000/my-file.txt',{headers:{mode:'load',auth:'abc-123'}})
12+
var txt = await res.text();
13+
consolelog(txt);
14+
15+
```
16+
17+
the client-side library can found at
18+
19+
[file-server.js](/libs/js/io/file-server/file-server.html)
20+
21+

0 commit comments

Comments
 (0)