Explain new functionality in README

This commit is contained in:
Miguel González Aravena 2017-08-15 03:50:11 -03:00
parent 9ebfdcbdc2
commit 908d137a04
1 changed files with 16 additions and 0 deletions

View File

@ -32,6 +32,22 @@ Example
[POST] http://example.com:3000/api/Containers/images%2Fprofile%2Fpersonal/upload (For upload file)
```
## Add option to your dataSources.json
If you want a default name only for the upload images (not files), you have to add `defaultImageName` to your Container options.
**datasources.json**
```
[...]
"container": {
"name": "container",
"connector": "loopback-component-storage",
"provider": "filesystem",
"maxFileSize": "10485760",
"root": "./storage",
"defaultImageName": "photo"
}
[...]
```
## Examples
See https://github.com/strongloop/loopback-example-storage.