Permalink
Browse files

fix readme

  • Loading branch information...
tih-ra committed Nov 28, 2011
1 parent 312459f commit ae8d71e3b9faeb555a744232ad1afc2acf42ac3b
Showing with 10 additions and 9 deletions.
  1. +10 −9 README.md
View
@@ -46,16 +46,15 @@ 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();
- });
- });
+ ```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();
+ });
+ });
**Get file url example**
@@ -64,6 +63,7 @@ You can use `storage: 'aws'` for store files on Amazon S3 or `storage: 'dir'` fo
`file` - The name of the file you uploaded, saved for example in database (`345621345.jpg`), `variant` - one of your image variants names from alleup_congig.json
+
**Remove uploaded file example**
```javascript
@@ -74,6 +74,7 @@ You can use `storage: 'aws'` for store files on Amazon S3 or `storage: 'dir'` fo
});
};
+
### Contribution
**Pull requests are welcome!!!**

0 comments on commit ae8d71e

Please sign in to comment.