1 Answers
The REST semantic claims that both PUT and POST can be used for creating entities.
The AWS S3 API for adding an object to a bucket says PUT. https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html
There is also a POST API actually for sending a request from a browser. https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html
You are right regarding the REST semantic, thanks for pointing that out, I was wrong. Now I understand that we (should) use PUT on S3 because we’re supplying the key (required) for the new object – a POST would return a 404 in that case. And I got that POST is kind of "syntactic sugar" for browser-based uploads. Thank you so much!