Permalink
Browse files

fix readme

  • Loading branch information...
1 parent 3c29392 commit f42fd9c85459df8c964a1feae2197bb347e00dfd @tih-ra committed Nov 28, 2011
Showing with 2 additions and 8 deletions.
  1. +2 −8 README.md
View
@@ -46,14 +46,8 @@ You can use `storage: 'aws'` for store files on Amazon S3 or `storage: 'dir'` fo
**Upload example**
```javascript
- app.post('/upload', function(req, res) {
- alleup.upload(req, res, function(err, file, res){
-
- console.log("FILE UPLOADED: " + file);
- // THIS YOU CAN SAVE FILE TO DATABASE FOR EXAMPLE
- res.end();
- });
- });
+ var Alleup = require('alleup');
+ var alleup = new Alleup({storage : "aws", config_file: "path_to_alleup_config.json"})
**Get file url example**

0 comments on commit f42fd9c

Please sign in to comment.