diff --git a/backend/ulozto/ulozto.go b/backend/ulozto/ulozto.go index b5033107a..cf92de32a 100644 --- a/backend/ulozto/ulozto.go +++ b/backend/ulozto/ulozto.go @@ -346,6 +346,11 @@ func (f *Fs) uploadUnchecked(ctx context.Context, name, parentSlug string, info MultipartFileName: encodedName, Parameters: url.Values{}, } + if info.Size() > 0 { + size := info.Size() + opts.ContentLength = &size + } + var uploadResponse api.SendFilePayloadResponse err = f.pacer.CallNoRetry(func() (bool, error) {