Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9291056
feat(fs):slice upload
jenken827 Aug 24, 2025
88ad014
feat:slice upload
jenken827 Aug 24, 2025
a4ece2d
feat(fs): slice upload
jenken827 Aug 25, 2025
757a74f
feat(fs): implement slice upload
jenken827 Aug 26, 2025
0e484dd
fix(fs): update error messages and change upload_id to task_id in sli…
Suyunmeng Sep 5, 2025
39752d1
feat(fs): enhance slice upload with retry logic, upload state managem…
Suyunmeng Sep 5, 2025
1756627
feat(fs): Enhanced multi-part upload functionality, added server heal…
Suyunmeng Sep 5, 2025
91d83a0
feat(fs): Added task status synchronization function, optimized the p…
Suyunmeng Sep 5, 2025
5b2f8fb
feat(fs): 增加重试配置,优化服务器重启后的任务状态同步逻辑,改进错误处理和日志输出
Suyunmeng Sep 6, 2025
ae51cfa
feat(deps): 添加 p-limit 依赖,更新 pnpm-lock.yaml
Suyunmeng Sep 6, 2025
8ab5c5d
格式化代码
j2rong4cn Sep 6, 2025
5579321
流式上传分片
j2rong4cn Sep 6, 2025
3766f0b
feat(fs): fix p-limit
Suyunmeng Sep 6, 2025
b71edb9
Merge branch 'slice_upload' of https://github.com/jenken827/openlist-…
Suyunmeng Sep 6, 2025
54dab7a
feat(upload): 添加 "tasked" 状态支持,更新状态检查逻辑
j2rong4cn Sep 6, 2025
238896f
refactor(upload): 移除 p-limit 依赖,优化分片上传并发处理逻辑
Suyunmeng Sep 6, 2025
9e2272a
把分片上传移动到上传方法
j2rong4cn Sep 6, 2025
6b77cb0
refactor(upload): 移除服务器健康检查和任务状态同步逻辑,简化重试机制
Suyunmeng Sep 6, 2025
7b7e6b9
refactor(upload): 移除冗余
Suyunmeng Sep 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/lang/en/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@
"pending": "Pending",
"uploading": "Uploading",
"backending": "Uploading in the backend",
"tasked": "Successfully added to the task",
"success": "Success",
"error": "Error",
"back": "Back to Upload",
"clear_done": "Clear Done"
"clear_done": "Clear Done",
"slice_upload": "Slice upload"
},
"local_settings": {
"aria2_rpc_url": "Aria2 RPC URL",
Expand Down
26 changes: 15 additions & 11 deletions src/pages/home/uploads/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const Upload = () => {
})
const allDone = () => {
return uploadFiles.uploads.every(({ status }) =>
["success", "error"].includes(status),
["success", "error", "tasked"].includes(status),
)
}
let fileInput: HTMLInputElement
Expand Down Expand Up @@ -124,7 +124,7 @@ const Upload = () => {
rapid(),
)
if (!err) {
setUpload(path, "status", "success")
setUpload(path, "status", asTask() ? "tasked" : "success")
setUpload(path, "progress", 100)
} else {
setUpload(path, "status", "error")
Expand All @@ -148,7 +148,8 @@ const Upload = () => {
onClick={() => {
setUploadFiles("uploads", (_uploads) =>
_uploads.filter(
({ status }) => !["success", "error"].includes(status),
({ status }) =>
!["success", "error", "tasked"].includes(status),
),
)
console.log(uploadFiles.uploads)
Expand Down Expand Up @@ -304,6 +305,7 @@ const Upload = () => {
>
{t("home.upload.add_as_task")}
</Checkbox>

<Checkbox
checked={overwrite()}
onChange={() => {
Expand All @@ -312,14 +314,16 @@ const Upload = () => {
>
{t("home.conflict_policy.overwrite_existing")}
</Checkbox>
<Checkbox
checked={rapid()}
onChange={() => {
setRapid(!rapid())
}}
>
{t("home.upload.try_rapid")}
</Checkbox>
<Show when={curUploader().name !== "Slice"}>
<Checkbox
checked={rapid()}
onChange={() => {
setRapid(!rapid())
}}
>
{t("home.upload.try_rapid")}
</Checkbox>
</Show>
</Stack>
</Show>
</VStack>
Expand Down
Loading