Preview image before uploading to server. Using FileReader.
##How to use?
- Just include the image-preview.js in your project
- Add a class
preview_image
to the file input element,preview_div
class to the div where you wish to see the preview and wrap them inside a div with classpreviewable_div
.