1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-31 07:33:33 +00:00

fixup! lib/rest: add opts.MultipartContentType to explicitly set Content-Type of attachements FIXME WIP

This commit is contained in:
Nick Craig-Wood
2025-12-11 17:48:42 +00:00
parent 4d858210b3
commit 8e94a154ed
7 changed files with 9 additions and 25 deletions

View File

@@ -72,7 +72,7 @@ func (ik *ImageKit) Upload(ctx context.Context, file io.Reader, param UploadPara
response := &UploadResult{}
formReader, contentType, _, err := rest.MultipartUpload(ctx, file, formParams, "file", param.FileName)
formReader, contentType, _, err := rest.MultipartUpload(ctx, file, formParams, "file", param.FileName, "application/octet-stream")
if err != nil {
return nil, nil, fmt.Errorf("failed to make multipart upload: %w", err)