简体   繁体   English

使用PHP将文件上传到Amazon S3存储桶-无需使用SDK

[英]Upload File using PHP into Amazon S3 bucket - without using SDK

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). 我需要使用PHP代码将文件上传到Amazon S3存储桶,但是我需要在不使用SDK(版本3)的情况下做到这一点。

i cannot use the SDK version 3, because i have PHP version 5.3.3 on my server. 我不能使用SDK版本3,因为我的服务器上具有PHP版本5.3.3。

All links, guides and examples, in the Amazon S3 website, are referring to the SDK. Amazon S3网站上的所有链接,指南和示例均引用该SDK。 how can i upload a file without using the SDK? 如何在不使用SDK的情况下上传文件?

thank you. 谢谢。

Here's how you upload an object to S3 using S3 API. 这是使用S3 API将对象上传到S3的方法。 You don't need to use an SDK for this. 您不需要为此使用SDK。 Just send an HTTPS request as per the documentation. 只需按照文档发送HTTPS请求即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM