We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 218f648 commit fb6f349Copy full SHA for fb6f349
internal/file.go
@@ -690,6 +690,8 @@ func (inode *Inode) sendUpload(priority int) bool {
690
// In current implemetation we should not patch big simple objects. Reupload them as multiparts first.
691
// If current ETag is unknown, try patching anyway, so that we don't trigger an unecessary mpu.
692
(inode.uploadedAsMultipart() || inode.knownETag == "" || smallFile) &&
693
+ // Current PATCH works incorrectly when updating an empty file. Do not update the empty file using PATCH.
694
+ inode.knownSize > 0 &&
695
// Currently PATCH does not support truncates. If the file was truncated, reupload it.
696
inode.knownSize <= inode.Attributes.Size
697
0 commit comments