Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "An item with the same key has already been added." #966

Open
VitaliBalyk opened this issue Dec 22, 2023 · 0 comments
Open

Error "An item with the same key has already been added." #966

VitaliBalyk opened this issue Dec 22, 2023 · 0 comments

Comments

@VitaliBalyk
Copy link

Project on Xamarin Forms. Everything works on Android. But there is an error on iOS.
All packages have been updated to the latest version.
When I send a file to the bucket, I get an error "An item with the same key has already been added. Key: X-Content-Type-Options".
The file is definitely not in the bucket bin before the method is called. After the error, the file is in the bucket.

                var putObjectArgs = new PutObjectArgs()
                    .WithBucket(bucketName)
                    .WithObject(location + objectName)
                    .WithFileName(filePath)
                    .WithContentType(photo.File.ContentType);
                try
                {
                    await minio.PutObjectAsync(putObjectArgs).ConfigureAwait(false);
                }
                catch (Exception ex)
                {
                    Console.WriteLine($"PutObjectAsync exception: {ex.Message}");
                    throw ex;
                }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant