Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

filelu: add multipart init response type

kingston12537f633663642
diff --git a/backend/filelu/api/types.go b/backend/filelu/api/types.go
index c92d23d0a..511ad7274 100644
--- a/backend/filelu/api/types.go
+++ b/backend/filelu/api/types.go
@@ -3,6 +3,19 @@ package api
import "encoding/json"
+// MultipartInitResponse represents the response from multipart/init.
+type MultipartInitResponse struct {
+ Status int `json:"status"`
+ Msg string `json:"msg"`
+ Result struct {
+ UploadID string `json:"upload_id"`
+ SessID string `json:"sess_id"`
+ Server string `json:"server"`
+ FolderID int64 `json:"folder_id"`
+ ObjectPath string `json:"object_path"`
+ } `json:"result"`
+}
+
// CreateFolderResponse represents the response for creating a folder.
type CreateFolderResponse struct {
Status int `json:"status"`