fix: form upload when ticked As A Task (#5145)

This commit is contained in:
Sean
2023-09-03 15:40:40 +08:00
committed by GitHub
parent 8102142007
commit e7c0d94b44
3 changed files with 51 additions and 73 deletions

View File

@ -148,7 +148,7 @@ func (d *AliyundriveOpen) upload(ctx context.Context, dstDir model.Obj, stream m
// Part Size Unit: Bytes, Default: 20MB,
// Maximum number of slices 10,000, ≈195.3125GB
var partSize = calPartSize(stream.GetSize())
const dateFormat = "2006-01-02T15:04:05.88Z"
const dateFormat = "2006-01-02T15:04:05.999Z"
mtime := stream.ModTime()
mtimeStr := mtime.UTC().Format(dateFormat)
ctimeStr := stream.CreateTime().UTC().Format(dateFormat)