angular-base64-upload
angular-base64-upload copied to clipboard
How to preview the file
The plugin should also return a data url with which we can preview the file in browser
the format to preview image is :
data:[image/type];base64,[base64 string]
example:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAG.....
These info are all available in the plugin
To use it in browser:
<img ng-src ="data:{{model.filetype}};base64,{{model.base64}}" >