Differential/meteor-uploader — pull request #2 by timtch (2014-06-18 04:12:33+00:00)
Title: Some update which maybe help someone

Easy way to change an image with preffered tool
Just need to add 'manipulateImage' to settings helper which receives
the result of reader.readAsDataURL and should run the uploadCallback
with the result dataUrl

```javascript
manipulateImage: function(imageDataUrl, fileData, uploadCallback) {
img = new Image()
img.onload = function() {

Caman(this, function() {
this.resize({
height: 100
})

this.render(function() {
uploadCallback(this.canvas.toDataURL(fileData.type))
})

});
}

img.src = imageDataUrl

}

```
Way to restrict uploading files on client side, just to prevent to upload pdf where image should be
also configurable inside of settings helper.

```javascript
accept: "image/*",
```

"uploader-status" class to make it possible to hide information that file is uploading and only show the progressbar

show result fileName inside of onUpload, to not to save a full url because it's too long,
but just a file name