Skip to content

Commit 9f650a0

Browse files
committed
stream upload
1 parent e4fa59d commit 9f650a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/faq/why.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Your Tampermonkey answering plug-in conflicts, just close it [**For details, cli
106106

107107
### What is the difference between the two uploads?
108108

109-
**1️⃣ stream** directly puts the binary content of the file into the body, so that the backend can use very little memory, but the browser may limit the size because the file needs to be read into the memory at one time.
109+
**1️⃣ stream** directly puts the binary content of the file into the body, so that the backend can use very little memory, it seem to have no downsides.
110110

111111
**2️⃣ form** is to wrap the file into formdata and upload it. The memory used by the backend will be more, but there is no limit on the size.
112112

docs/zh/faq/why.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ star: true
108108

109109
### 两个上传有什么区别?
110110

111-
**1️⃣ stream**直接把文件二进制内容放进body中,这样后端可以使用很少的内存,但是浏览器可能会限制大小因为要一次性把文件读进内存
111+
**1️⃣ stream**直接把文件二进制内容放进body中,这样后端可以使用很少的内存,似乎没有什么其他的缺点
112112

113113
**2️⃣ form**是把文件包裹成formdata上传,后端使用的内存会多一些,但是不限制大小。
114114

0 commit comments

Comments
 (0)