Support Presigned POST URL Generator with policy document
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 51
Description
Supporting Presigned POST URL generators with policy documents
## Expected Behavior
sdk is able to generate presigned post url with conditions.
## Current Behavior
It's not supported yet.
V1 sdk also doesn't have this feature. https://github.com/aws/aws-sdk-java/issues/834
It's not even in current plan as https://github.com/aws/aws-sdk-java-v2/issues/203#issuecomment-548027793
## Context
To utilize presigned url's policy document.
In my case, our logic is
1. Client request to upload a file
2. Backend process pre condition checks like user authentications
3. Backend returns presigned post url and form fields for upload
- Conditions are needed to limit bucket, object key, content type and content length range
- As both V1 and V2 sdk doesn't support this feature, we call lambda function which written in js to generate presigned post url and use that.
4. Client uploads a file using the presigned post url and form fields
https://github.com/aws/aws-sdk-java-v2/issues/203#issuecomment-547693103
Contributor guide
Assessment
This issue has not been assessed yet.