Commit 068edf1
Raphaël Droz
Per-chunk filenames
Use:
query: (fileObj, chunk) => {
// Upload "foobar.bin" first chunk at "segments/000-foobar.bin"
chunk.filename = 'segments/' + chunk.offset.toString().padStart(3, 0) + '-' + fileObj.file.name;
}1 parent de28124 commit 068edf1
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1172 | 1178 | | |
1173 | 1179 | | |
1174 | 1180 | | |
| |||
1512 | 1518 | | |
1513 | 1519 | | |
1514 | 1520 | | |
1515 | | - | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1516 | 1524 | | |
1517 | 1525 | | |
1518 | 1526 | | |
| |||
0 commit comments