Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix readme

  • Loading branch information...
commit ae8d71e3b9faeb555a744232ad1afc2acf42ac3b 1 parent 312459f
@tih-ra authored
Showing with 10 additions and 9 deletions.
  1. +10 −9 README.md
View
19 README.md
@@ -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!!!**
Please sign in to comment.
Something went wrong with that request. Please try again.