-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Presigned V4 URLs using Java SDK #834
Comments
Thanks for reaching out to us. This is a very interesting feature request. I will bring this feature request to our team and talk about it to see whether we want to support it. |
Hey @mohamnag, AWS Java SDK already supports this feature. See here. Just use
You can use |
This is not what I was asking for. This uploads the file directly using Java SDK to S3. You currently have What I'm looking for is to impose limits inside the URL by attaching a policy document like what is described here only to do it completely on server side and just give client that final URL. I already have a custom Java code that does so, but it would be nice to have it as part of SDK. |
I'm not sure if presigned URLs support limiting content sizes, I'll have to ask the service team. If you know the exact content length you can always set that and it will be included in the signature but doesn't sound like it will help in this case. |
there is no exact one, but there is a max length. and yes it is possible. thats at least what that linked page says. It is only impossible to build URLs using AWS SDK. But as I said, one can reproduce the signing process and do it on his own. |
There's a createPresignedPost() function in JS SDK. See below. It would be helpful if Java SDK supports this, too. |
+1 |
Some website service do not support uploading a file with their web component through "PUT" method. |
java.util.Date expiration = new java.util.Date();
|
Hi AWS SDK Team, Thanks, |
Hi, Python boto3 has this as well - https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-presigned-urls.html#generating-a-presigned-url-to-upload-a-file . Would be nice to have it in java. |
+1 It would great to have that method in Java SDK also |
Please implement this feature! |
This would also be very useful for me! Is there any progress regarding this feature? |
yeah, "progress" for an issue thats open for past 4 years seems to be a heavy word. looks like AWS has actually no interest in implementing things that community wants just what's dictated from above! |
Hi! Do you know anything new about this feature? :) |
Still no luck. |
Hello all 👋 I created this open source library to upload files to AWS S3 using Pre Signed POST. I am officially opening up for usability test. With it you can specify requirements and restrictions that the client using the pre-signed post, generated by you, must Feel free to check it out on github and maven central 👍 Cheers, |
We apologize but this feature won't be added to v1. Java SDK v2 doesn't support POST presigned urls either, please track the v2 feature request in aws/aws-sdk-java-v2#1493. Reference:
|
This issue is now closed. Comments on closed issues are hard for our team to see. |
I have been trying to find a way to generate a presigned URL using SDK which also contain a policy document. However I found out that it is not possible as documented here:
My case is that I'm using SDK on a server that generates presigned URLs for clients. Then clients may use these to upload files to S3.
I would say there are a lot of cases where it is important to force specific content length or similar obligations on the request. So is this a final decision not to include policy signed URL generation in AWS SDK?
The text was updated successfully, but these errors were encountered: