javascript - Preview an image before it is uploaded - Stack Overflow

javascript - Preview an image before it is uploaded - Stack Overflow

瀏覽:629
日期:2024-04-26
I want to be able to preview a file (image) before it is uploaded. The preview action should be executed all in the browser without using Ajax to upload the image. ... Please take a look at the sample JS code below: function readURL(input) { if (input.fil...看更多