Rails+javascript - image preview before upload

后端 未结 4 1182
太阳男子
太阳男子 2021-02-13 16:08

I want to show an image preview before upload, for that I am using the code given below.

It works with firefox, but doesn\'t work with IE8

<%= image_t         


        
4条回答
  •  粉色の甜心
    2021-02-13 16:45

    I had made a pure JS solution with fallback for IE users: http://mootools.standupweb.net/dragndrop.php

提交回复
热议问题