Skip to content

Commit 4685ec7

Browse files
save file
1 parent c289494 commit 4685ec7

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

code-projects/http-file-upload/http-file-upload.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,15 @@
7676

7777
});
7878

79+
7980
}//zip
81+
82+
83+
84+
function $(root,css){return (!css && (css=root,root=document),root.querySelector(css))}
85+
86+
87+
8088
</script>
8189
<meta style="display: block;" name="viewport" content="width=device-width, initial-scale=1">
8290
</meta>
@@ -551,9 +559,9 @@ <h4 class="sub-title">
551559

552560
var body = &#39;&#39;;
553561
for await(data of res)body += data;
554-
console.log(body);
555-
556-
562+
console.log(body);
563+
564+
557565
&#x2F;&#x2F; not using for await ...
558566

559567
var body = &#39;&#39;;
@@ -577,7 +585,7 @@ <h4 class="sub-title">
577585

578586
var fd = require(&#39;fs&#39;).createWriteStream(&#39;&#x2F;tmp&#x2F;video.mp4&#39;);
579587
res.pipe(fd);
580-
588+
581589
});
582590
</code>
583591
</div>
@@ -605,13 +613,13 @@ <h4 class="sub-title">
605613

606614
var fd = fs.createWriteStream(file);
607615
res.pipe(fd);
608-
616+
609617
});
610-
618+
611619
});
612620

613621
});
614-
622+
615623
});
616624
</code>
617625
</div>

0 commit comments

Comments
 (0)