I am trying to design a module in which I would like to show a preview of the image to the user before he uploads the image to database.
I have found a solution which wo
There's no cross-browser solution (even FileReader needs certain permissions in Firefox), only some workarounds for ie and firefox.
FileReader
You should do the conventional way, upload the image to a temp file and delete/save it depending on user confirmation
Hope this helps