Commit d07ddcf
feat: Streaming file uploads (#14775)
* start
* pass in form_dat
* serialization
* start deserializer
* finished? deserializer
* upload progress via XHR
* simplify file offsets, sort small files first
* don't cache stream
* fix scoped ids
* tests
* re-add comment
* move location & pathname back to headers
* skip test on node 18
* changeset
* polyfill file for node 18 test
* fix refreshes
* optimize file offset table
* typo
* add lazyfile tests
* avoid double-sending form keys
* remove xhr for next PR
* fix requests stalling if files aren't read
* Update new-rivers-run.md
* encode text before determining length
---------
Co-authored-by: Rich Harris <[email protected]>1 parent dfb41e1 commit d07ddcf
File tree
11 files changed
+633
-75
lines changed- .changeset
- packages/kit
- src
- runtime
- app/server/remote
- client/remote-functions
- server
- types
- utils
- test/apps/basics
- src/routes/remote/form/file-upload
- test
11 files changed
+633
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 107 | + | |
121 | 108 | | |
122 | 109 | | |
123 | 110 | | |
| |||
153 | 140 | | |
154 | 141 | | |
155 | 142 | | |
156 | | - | |
| 143 | + | |
157 | 144 | | |
158 | 145 | | |
159 | 146 | | |
160 | 147 | | |
161 | | - | |
| 148 | + | |
162 | 149 | | |
163 | 150 | | |
164 | 151 | | |
| |||
179 | 166 | | |
180 | 167 | | |
181 | 168 | | |
182 | | - | |
| 169 | + | |
183 | 170 | | |
184 | 171 | | |
185 | 172 | | |
| |||
298 | 285 | | |
299 | 286 | | |
300 | 287 | | |
301 | | - | |
302 | | - | |
| 288 | + | |
303 | 289 | | |
304 | | - | |
| 290 | + | |
305 | 291 | | |
306 | 292 | | |
307 | 293 | | |
308 | 294 | | |
309 | | - | |
| 295 | + | |
310 | 296 | | |
311 | 297 | | |
312 | 298 | | |
| |||
Lines changed: 23 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | | - | |
| 192 | + | |
190 | 193 | | |
191 | | - | |
192 | 194 | | |
| 195 | + | |
193 | 196 | | |
194 | 197 | | |
195 | | - | |
| 198 | + | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
539 | 543 | | |
540 | 544 | | |
541 | 545 | | |
542 | | - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
543 | 549 | | |
544 | 550 | | |
545 | 551 | | |
| |||
548 | 554 | | |
549 | 555 | | |
550 | 556 | | |
551 | | - | |
552 | | - | |
553 | | - | |
| 557 | + | |
554 | 558 | | |
555 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
556 | 567 | | |
557 | 568 | | |
558 | 569 | | |
| |||
644 | 655 | | |
645 | 656 | | |
646 | 657 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 658 | | |
654 | 659 | | |
655 | 660 | | |
| |||
0 commit comments