It seems like createPresignedPost requires a policy for content-type. I’ve tried adding a content-type, but it still doesn’t work. Could you please provide a working example of how to use createPresignedPost with Spaces? I’m using the latest version of aws-sdk for NodeJS.
Also, an AWS employee stated on Github that createPresignedPost only works with V4 signatures (https://github.com/aws/aws-sdk-js/issues/1488#issuecomment-298054371). Is this confirmation that Spaces doesn’t support createPresignedPost?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.