Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Aug 4, 2015
1 parent 5ef102f commit a42c9da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Service for Sails framework with storage features.
## List of supported storage

- Amazon S3
- Local Storage

## Getting Started

Expand Down Expand Up @@ -132,6 +133,21 @@ amazon
.catch(console.error.bind(console));
```

### LocalStorage

```javascript
var local = StorageService.create('local', {
provider: {
uploadsDir: path.resolve(__dirname, '../uploads')
}
});

local
.upload('./my-file.png', 'destination-file-name.png')
.then(console.log.bind(console))
.catch(console.error.bind(console))
```

## License

The MIT License (MIT)
Expand Down

0 comments on commit a42c9da

Please sign in to comment.