[PR #343] [MERGED] feat: supports resumable uploads #574

Closed
opened 2026-04-08 16:53:29 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/343
Author: @sigoden
Created: 1/10/2024
Status: Merged
Merged: 1/11/2024
Merged by: @sigoden

Base: mainHead: feat-resume-upload


📝 Commits (10+)

📊 Changes

5 files changed (+190 additions, -40 deletions)

View changed files

📝 README.md (+17 -3)
📝 assets/index.css (+4 -1)
📝 assets/index.js (+60 -15)
📝 src/server.rs (+88 -19)
📝 tests/http.rs (+21 -2)

📄 Description

HTTP PATCH support https://sabre.io/dav/http-patch/

upload_offset=$(curl -I -s http://127.0.0.1:5000/file | tr -d '\r' | sed -n 's/content-length: //p')
dd skip=$upload_offset if=file status=none ibs=1 | \
  curl -X PATCH -H "X-Update-Range: append" --data-binary @- http://127.0.0.1:5000/file

close #335


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/343 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 1/10/2024 **Status:** ✅ Merged **Merged:** 1/11/2024 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat-resume-upload` --- ### 📝 Commits (10+) - [`9e691a4`](https://github.com/sigoden/dufs/commit/9e691a4a100da8e0fbff07e29c9e5eb72d8f049d) feat: supports resumable upload - [`feb772b`](https://github.com/sigoden/dufs/commit/feb772bee8f888eef6261a97e507ccafdd19a3a1) add more tests - [`0cccee3`](https://github.com/sigoden/dufs/commit/0cccee3f666de694e96810e2e02887680201faaf) use PATCH rather than PUT - [`8bc2103`](https://github.com/sigoden/dufs/commit/8bc21035650e369d78e607e5f273615fdc109b8d) update readme - [`69658b5`](https://github.com/sigoden/dufs/commit/69658b5eacb506fa81c80dd0a89d7f61c649c752) update webui - [`d3f94df`](https://github.com/sigoden/dufs/commit/d3f94df5d5962454f944f385264159fe3f5e8899) update webui styles - [`3ebd0af`](https://github.com/sigoden/dufs/commit/3ebd0afa6419aa49c16255824d70fdd11bb0956e) improve webui - [`9859246`](https://github.com/sigoden/dufs/commit/9859246a889b07d6adecbde72af0c46c2af4eaed) update readme - [`c0f15f9`](https://github.com/sigoden/dufs/commit/c0f15f9f02b165c08d69a28bc316b6e7917d4db8) abandon upload-offset response header - [`ff18fe3`](https://github.com/sigoden/dufs/commit/ff18fe319a2cb96712b718567f8dda6f7522b1b0) follow sabre webdav http-patch spec ### 📊 Changes **5 files changed** (+190 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+17 -3) 📝 `assets/index.css` (+4 -1) 📝 `assets/index.js` (+60 -15) 📝 `src/server.rs` (+88 -19) 📝 `tests/http.rs` (+21 -2) </details> ### 📄 Description HTTP PATCH support https://sabre.io/dav/http-patch/ ```sh upload_offset=$(curl -I -s http://127.0.0.1:5000/file | tr -d '\r' | sed -n 's/content-length: //p') dd skip=$upload_offset if=file status=none ibs=1 | \ curl -X PATCH -H "X-Update-Range: append" --data-binary @- http://127.0.0.1:5000/file ``` close #335 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:29 +03:00
zhus closed this issue 2026-04-08 16:53:30 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#574