Let’s see if it might be in the Minio settings.
Try using other tools, for example, tools that can directly access the bucket, to see if you can upload directly.
If you can upload directly here, then it’s likely a Discourse configuration issue. If you cannot upload directly here, then it’s likely a permissions issue.