小编Nef*_*sta的帖子

如何公开上传到 Amazon s3 的文件

我正在按照本教程将文件从 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)

php amazon-s3 amazon-web-services

4
推荐指数
1
解决办法
2549
查看次数

标签 统计

amazon-s3 ×1

amazon-web-services ×1

php ×1