Plugin Name
开发者 |
aaroncollegeman
|
更新时间 |
2012年10月12日 22:51 |
捐献地址: |
去捐款 |
PHP版本: |
2.9 及以上 |
WordPress版本: |
3.4 |
版权: |
GPLv2 or later |
版权网址: |
版权信息
|
详情介绍:
Everyone knows that Amazon S3 is the best place to host static files.
But how do you use S3 to distribute access-restricted content - that eBook
that's for registered members only, or your band's latest album?
Fat Panda to the rescue!
With this plugin, you can easily generate temporary links to privately-hosted
content on S3. It couldn't be easier:
[s3 bucket="your-S3-bucket" path="/path/to/restricted/file.whatever"]Download![/s3]
The link generated will only be usable for five minutes, after which users
who click on it will simply see Amazon's standard 404 page.
You can control the expiration time using the expires attribute; this link
will expire after one hour:
[s3 bucket="your-S3-bucket" path="/path/to/file" expires="60"]Download![/s3]
Following Installation instructions to get this plugin up and running.
安装:
- Install this plugin in your WordPress site.
- Activate this plugin through the 'Plugins' menu in WordPress.
- Sign up for Amazon AWS S3.
- Create a bucket in S3. Create folders to organize your files. Upload files -
mark them as private (should be the default).
- Install your AWS keys in WordPress. There are two ways. The first way is to
create constants in your
wp-config.php
file - the two constants are FPEAS3_AWS_S3_ACCESS_ID
and FPEAS3_AWS_S3_SECRET
. The second way is to drop your keys into custom fields
in the Post or Page you're adding links to: aws_s3_access_id
and aws_s3_secret
- Add links to posts.
- Publish. Rejoice.
更新日志: