1

i need to upload a file, into an Amazon S3 bucket, using PHP code, but i need to do that without using the SDK (Version 3).

i cannot use the SDK version 3, because i have PHP version 5.3.3 on my server.

All links, guides and examples, in the Amazon S3 website, are referring to the SDK. how can i upload a file without using the SDK?

thank you.

4
  • Are you using any framework? Commented Aug 27, 2019 at 7:35
  • compile alternative php in cgi mode can run any number of versions Commented Aug 27, 2019 at 7:38
  • The SDK is open sourced so you can see how it works. I think the hard part is not the actual upload which is pretty easy (it's just a post at a specific endpoint) it is generating the authentication signature. Commented Aug 27, 2019 at 7:50
  • use the curl command to upload an image to s3 with access key and secret key. Commented Aug 27, 2019 at 9:19

1 Answer 1

1

Here's how you upload an object to S3 using S3 API. You don't need to use an SDK for this. Just send an HTTPS request as per the documentation.

Sign up to request clarification or add additional context in comments.

1 Comment

This is the term i was looking for and didn't know it existed : "Amazon S3 REST API". this is all i needed to read about and go forward. thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.