Permalink
Browse files

fix readme

  • Loading branch information...
1 parent ae8d71e commit fb789a9cfa614b8ddb52c6089a59d1d7c16fe2d6 @tih-ra committed Nov 28, 2011
Showing with 8 additions and 26 deletions.
  1. +8 −26 README.md
View
@@ -43,36 +43,18 @@ Example:
You can use `storage: 'aws'` for store files on Amazon S3 or `storage: 'dir'` for store files in filesystem
-
**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();
- });
- });
-
- **Get file url example**
-
- ```javascript
- alleup.url(file, variant)
-
-`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
-
+ ```javascript
+ app.post('/upload', function(req, res) {
+ alleup.upload(req, res, function(err, file, res){
- **Remove uploaded file example**
+ console.log("FILE UPLOADED: " + file);
+ // THIS YOU CAN SAVE FILE TO DATABASE FOR EXAMPLE
+ res.end();
+ });
+ });
- ```javascript
- app.get('/delete', function(req, res) {
- alleup.remove('1322506647.jpg', function(err) {
- // THIS YOU CAN DELETE FILE FROM DATABASE FOR EXAMPLE
- res.end();
- });
- };
### Contribution

0 comments on commit fb789a9

Please sign in to comment.