Error "An item with the same key has already been added."
VitaliBalyk opened this issue · 0 comments
VitaliBalyk commented
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;
}