mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: create hidden file when creating upload session
This commit is contained in:
@@ -260,7 +260,7 @@ func (client *Client) UploadChunk(ctx context.Context, uploadURL string, chunk *
|
||||
func (client *Client) Upload(ctx context.Context, file fsctx.FileHeader) error {
|
||||
// 决定是否覆盖文件
|
||||
overwrite := "replace"
|
||||
if file.GetMode() != fsctx.Overwrite {
|
||||
if file.GetMode() != fsctx.Create {
|
||||
overwrite = "fail"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user