2012/9/25 Avantec Van :
> Is there any ruby way to show thumbnail preview of image before upload?
No!
There can't be! Ruby needs you to have that image on the server to
generate a thumb of it, but before the upload it is not on the server.
What you try here, is not possible in PHP, whatever.NET
Is there any ruby way to show thumbnail preview of image before upload?
Using below javascript, I can achieve this
window.URL = window.URL || window.webkitURL;
var fileElem = document.getElementById("fileElem");
function handleFiles(files) {
var img = document.getElementById("image
2 matches
Mail list logo