webdav兼容rclone的nextcloud选项(修改日期和checksum)

This commit is contained in:
Weidi Deng
2023-04-07 22:16:11 +08:00
parent c8b736bd8f
commit 1b4eff624d
5 changed files with 119 additions and 32 deletions

View File

@@ -389,6 +389,9 @@ func (h *Handler) handlePut(w http.ResponseWriter, r *http.Request, fs *filesyst
fs.Use("AfterValidateFailed", filesystem.HookDeleteTempFile)
}
// rclone 请求
fs.Use("AfterUpload", filesystem.NewWebdavAfterUploadHook(r))
// 执行上传
err = fs.Upload(ctx, &fileData)
if err != nil {