图像上传前预览 [英] image Preview before Upload

查看:86
本文介绍了图像上传前预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在将图像插入数据库或将其上传到服务器之前预览图像?

有没有j查询那样做怎么做?

How can i preview an image before insert it to the database or upload it to the server ?
is there any j query do that and how ?

推荐答案

上传前的图像预览显示 [ ^ ]



这也可以帮助你image-upload-preview [ ^ ]



Google [ ^ ]是你最好的朋友。
Image Preview Display Before Uploading[^]

this will also help you image-upload-preview[^]

and Google[^] is your best friend.


你可以轻松实现这个目标。

Primiraly我可以向你推荐例如,将图像上传到ASP.WEB API Rest HTTP-service,将它存储在一些内存缓存中,然后你可以借助jQuery Ajax将新上传的图像预览到某个UI容器(web部分),并且只有在一些协议操作之后才将它提交给DB。
Hi , of courese you can easily achive this.
Primiraly I can propose to you to upload image, for example, to ASP.WEB API Rest HTTP-service , store it in some in-memory cache, then you can preview newly uploaded image with help of jQuery Ajax to some UI container(web part), and only after some agreement operation submit it to the DB.


这篇关于图像上传前预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆