File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,20 @@ $fa_article = new FileApi('/images/article/'); # initiate another instance
131
131
### Get image url
132
132
133
133
```php
134
- $fa->get('wfj412.jpg'); // => get image url of 'L' size
135
- $fa->get('wfj412.jpg', 'M'); // => get image url of 'M' size
136
- $fa->get('wfj412.jpg', 'full'); // => get image url of full size
134
+ // large size
135
+ $fa->get('wfj412.jpg');
136
+ $fa->get('wfj412.jpg', 'L');
137
+ $fa->get('wfj412.jpg', 'FileApi::SIZE_LARGE');
138
+
139
+ // medium size
140
+ $fa->get('wfj412.jpg', 'M');
141
+ $fa->get('wfj412.jpg', FileApi::SIZE_MEDIUM);
142
+
143
+ // full size
144
+ $fa->get('wfj412.jpg', 'full');
145
+ $fa->get('wfj412.jpg', FileApi::SIZE_ORIGINAL);
146
+
147
+ // comporssed
137
148
$fa->get('wfj412.jpg', 'CP'); // => get image url of compressed one
138
149
```
139
150
@@ -234,4 +245,4 @@ you add event listener to finish up after file uploaded, file api will fire `ima
234
245
235
246
'enable_api_upload' => false, // auto upload api
236
247
'api_prefix' => '/api/v1', // upload api url prefix
237
- 'middlewares' => [], // middlewares that wrap the api upload route
248
+ 'middlewares' => [], // middlewares that wrap the api upload route
You can’t perform that action at this time.
0 commit comments