我正在尝试使用 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/