Show the image preview before uploading it to the server

淺唱寂寞╮ 提交于 2019-12-05 20:51:44

To do that, you need to use the HTML5 File API. Almost every latest browsers support this feature except IE9. Safari 5.1 supports this but it's still in beta. You can check the HTML5 File API browser compatibility here.

There are good tutorials about using the HTML5 File API to display preview like this or this.

If you need more, you can find more with googling. You may need to use Progressive enhacement.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!