Force-Download with php on Amazon S3

后端 未结 12 1884
予麋鹿
予麋鹿 2020-12-13 07:40

I am trying to use http://code.google.com/p/amazon-s3-php-class/ to force-dowload files from AWS S3. I have an mp3 that I want people to \"play\" or \"download.\" By default

12条回答
  •  自闭症患者
    2020-12-13 08:05

    If you are using a library like Tarzan AWS, you can add meta headers, that amazon will include when the file is retrieved. Check out the meta parameter in the update_object function here, for example: http://tarzan-aws.com/docs/2.0/files/s3-class-php.html#AmazonS3.update_object

提交回复
热议问题