php - 如何使用 Jasny 的 Bootstrap 图像预览上传图像?

标签 php jquery twitter-bootstrap

我正在尝试使用 Jasny 的 Bootstrap 。这是一件好事!

我无法在页面 http://jasny.github.com/bootstrap/javascript.html#fileupload 上找到 Bootstrap 上传图像的解决方案

使用 bootstrap-fileupload.js,如何使用 Ajax 上传图片?

最佳答案

我直接向 Jasny's Bootstrap 的所有者 ARNOLD DANIELS 问了这个问题。

这是他的回答:

The whole point of the image preview is that the picture is show right away, without the need to upload it to the server using AJAX. So it stays just a regular form. You can post a form using AJAX http://api.jquery.com/jQuery.post/ if needed.

If you do want to upload the image using AJAX and don't want to use a form, checkout http://www.9lessons.info/2011/08/ajax-image-upload-without-refreshing.html

我使用此示例删除了与数据库相关的行,对我来说效果很好!

关于php - 如何使用 Jasny 的 Bootstrap 图像预览上传图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14836491/

相关文章:

php - C++ 非阻塞代理检查/打开

php - Apache中MultiViews中的“no acceptable variant”

jquery - 使用 Jquery 停止在 Jquery slider 中播放 youtube 视频

javascript - 如何使输入仅从 0.0 到 5.0

CSS3 列计数 block 重叠覆盖

php - 使用 PHP 和 MySQL 通过 current_timestamp 生成站点地图

javascript - 在选项卡关闭时清除 PHP session ?

javascript - getJSON 未执行的第二个函数

javascript - 当我将宽度设为 100% 时,元素未居中对齐

html - Bootstrap 3 按钮组