Unverified Commit 6e2be085 authored by devbhosale's avatar devbhosale Committed by GitHub
Browse files

how to use directory path prefix

Include an example of how to use directory path prefix with bucket name.
parent 6bc1691e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -41,6 +41,12 @@ define( 'S3_UPLOADS_REGION', '' ); // the s3 bucket region, required for Frankfu
```
Please refer to this region list http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region for the S3_UPLOADS_REGION values.

Use of path prefix after the bucket name is allowed and is optional. For example, if you want to upload all files to 'my-folder' inside a bucket called 'my-bucket', you can use: 

```PHP
define( 'S3_UPLOADS_BUCKET', 'my-bucket/my-folder' );
```

You must then enable the plugin. To do this via WP-CLI use command:

```