Skip to content

Commit 38f8c5d

Browse files
save file
1 parent 773c274 commit 38f8c5d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

code/nodejs/server/file-server/readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44

55
## Description
66

7-
This server can run locally and allow access to the local filesystem from the browser / javascript
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');
12+
var txt = await res.text();
13+
consolelog(txt);
14+
15+
```
816

917
1018

0 commit comments

Comments
 (0)