enhancement(media-library-uploadcare): add integration settings to control url operations (#2670)

This commit is contained in:
Aleksandr Grenishin
2019-10-28 21:14:42 +03:00
committed by Shawn Erquhart
parent 5636f5f54c
commit 574477adca
3 changed files with 166 additions and 15 deletions

View File

@ -78,3 +78,25 @@ For example:
multiple: true
previewStep: false
```
## Integration settings
There are several settings that control the behavior of integration with the widget.
* `autoFilename` (`boolean`) - specify whether to add a filename to the end of the url.
Example: `http://ucarecdn.com/:uuid/filename.png`
* `defaultOperations` (`string`) - specify a string added at the end of the url.
This could be useful to apply a set of CDN operations to each image,
for example resizing or compression. All the possible operations are listed
[here](https://uploadcare.com/docs/api_reference/cdn/).
```yaml
media_library:
name: uploadcare
config:
publicKey: demopublickey
settings:
autoFilename: true
defaultOperations: '/resize/800x600/'
```