首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >加载图像预览Codeigniter

加载图像预览Codeigniter
EN

Stack Overflow用户
提问于 2014-04-27 14:10:38
回答 1查看 242关注 0票数 0

我正在开发一个模块(在Codeigniter中),用户可以在其中上传图像。他有权查看图像的预览,了解图像将如何显示。我想用ajax来做这件事。

代码语言:javascript
复制
      1. Is is necessary to upload the image (ie save image in our database , get the url where it is stored and Load the image) to load the preview of the image.

      2. Is there any other way through which I can display the preview without storing the image in our database. (Getting the url from the client side  and displaying it.. How to do this ? )
EN

回答 1

Stack Overflow用户

发布于 2014-04-27 15:07:05

将镜像上传到您的资源文件夹中,并在表中插入镜像的路径。当你想预览图片时,将链接放入图片标签( <img src="path of the image from table" /> )。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23320018

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档