|
18 | 18 | * |
19 | 19 | * ``` |
20 | 20 | * const AdminBro = require('admin-bro') |
21 | | - * const uploadFeature = require('@admin-bro/upload') |
| 21 | + * const AdminBroExpress = require('@admin-bro/express') |
22 | 22 | * |
23 | 23 | * // part where you load adapter and models |
24 | 24 | * const User = require('./user') |
|
86 | 86 | * - [create a S3 bucket](https://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-bucket.html) |
87 | 87 | * - [get your access keys](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) |
88 | 88 | * |
89 | | - * Then fill all these data in {@link module:@admin-bro/upload.AWSOptions AWSOptions} |
| 89 | + * Then, fill all these data in {@link module:@admin-bro/upload.AWSOptions AWSOptions} |
90 | 90 | * and you are ready to go. |
91 | 91 | * |
92 | | - * By default upload plugin generates urls valid for 24h, if you want them to be public always, |
93 | | - * you need to create `public` bucket. Then set `expires` to `0`. |
| 92 | + * By default upload plugin generates urls valid for 24h, if you want them to be always `public` |
| 93 | + * (`public-acl`), you need to create a `public` bucket. Then set `expires` to `0`. |
94 | 94 | * |
95 | 95 | * ### Local Storage setup |
96 | 96 | * |
97 | 97 | * Local storage will save files to the local folder. |
98 | 98 | * |
99 | | - * There are 2 things which you have to do before using this Provider. |
| 99 | + * There are 2 things you have to do before using this Provider. |
100 | 100 | * |
101 | | - * 1. create folder for the files (i.e. `public`) |
| 101 | + * #### 1. create the **folder88 (`bucket`) for the files (i.e. `public`) |
102 | 102 | * |
103 | 103 | * ``` |
104 | 104 | * cd your-app |
105 | 105 | * mkdir public |
106 | 106 | * ``` |
107 | 107 | * |
108 | | - * 2. tell your http framework to host this folder |
| 108 | + * #### 2. tell your http framework to host this folder |
109 | 109 | * |
110 | | - * This is an example for a [express](https://expressjs.com) server |
| 110 | + * This is an example for the [express](https://expressjs.com) server |
111 | 111 | * |
112 | 112 | * ``` |
113 | 113 | * app.use('/uploads', express.static('uploads')); |
|
129 | 129 | * ### Custom Provider |
130 | 130 | * |
131 | 131 | * Plugin allows you also to pass your own provider. In such case you have to pass to the `provider` |
132 | | - * option an instance of the class extended from {@link module:@admin-bro/upload.BaseProvider}. |
| 132 | + * option an instance of the class extended from {@link BaseProvider}. |
133 | 133 | * |
134 | 134 | * ``` |
135 | 135 | * const { BaseProvider } = require('@admin-bro/upload') |
|
0 commit comments