我正在按照本教程将文件从 php 上传到亚马逊 s3。教程很好,但是我有一个小问题,所有上传的文件都必须手动公开才能从互联网上看到它们。有没有办法自动化这个?
上传.php
<?php
// This file demonstrates file upload to an S3 bucket. This is for using file upload via a
// file compared to just having the link. If you are doing it via link, refer to this:
// https://gist.github.com/keithweaver/08c1ab13b0cc47d0b8528f4bc318b49a
//
// You must setup your bucket to have the proper permissions. To learn how to do this
// refer to:
// https://github.com/keithweaver/python-aws-s3
// https://www.youtube.com/watch?v=v33Kl-Kx30o
// I will be using composer to install the needed AWS …Run Code Online (Sandbox Code Playgroud)