Closed orientalperil closed 6 months ago
@orientalperil try PutObjectTags
API instead or use PutObject API by passing tags as metadata
"tagging": get_tag_xml(RETENTION, EXPIRE_FAST),
where did you get this example?
Yeah I know you can use the Python client to do it, but my goal is to make a presigned POST URL that the browser can use to upload a file and have the tags applied through that at the same time. I don't want to write more code to look for the files later and tag them.
"tagging": get_tag_xml(RETENTION, EXPIRE_FAST),
where did you get this example?
I can't remember but I think I found this example of using the field in a presigned POST URL with XML for tagging somewhere on stackoverflow. It is supported by S3 so Minio should be able to do this too right?
This is unsupported so it won't work just yet.
fixed by #19816
NOTE
I'm trying to upload a file using a presigned POST URL and have the file tagged. The code works on S3 but not Minio.
Expected Behavior
Object in the bucket should be tagged with the key and value
{"retention": "expire_fast"}
Current Behavior
Object was not tagged at all
Steps to Reproduce (for bugs)
I used this code which uploads the file but doesn't tag:
The output of the code is:
I got this log capture:
Context
I want to tag the files to use to apply lifecycle rules.
Your Environment
minio --version
): RELEASE.2024-05-10T01-41-38Z (go1.22.3 darwin/amd64)uname -a
): macOS 13.6