So Bootstrap 3 just came out. I prefer it to Bootstrap 2 but I am currently using Jasny's extension for file uploads. Is there a way to cherry-pick that feature and use it with Bootstrap 3?
相关问题
- How to add a “active” class to a carousel first el
- Full Clickable Accordion in Bootstrap
- Upload file to Google Cloud Storage using AngularJ
- Get value of selected option using jquery [duplica
- How to add Bootstrap 4 without Tether?
相关文章
- Twitter Bootstrap Prints In XS
- Make Bootstrap tab Active on the bases of URL link
- Rails: Twitter Bootstrap Buttons when visited get
- File Upload of more than 4GB
- The current request is not a multipart request - S
- Reduce spacing between rows
- How do use bootstrap tooltips with React?
- Input file in laravel 5.2?
Needed this for a project so this is how I did it. The good news is the major change is in the
HTML
, as it is possible to adapt the plugin to Bootstrap 3.0 by adding only 5 lines and modifying 4 other in thecss
of the plugin.DEMO
Here is the
html
markup for using fileupload with Bootstrap 3.0:and the changes to the
bootstrap-fileupload.css
:as well as
There are most probably optimizations that can be done (some classes in the old
css
can be deleted, but this would have to be tested) to ameliorate the code but this is what I am using for now as it is quite easy to implement.When you only want the file upload plugin i will work basically, see: http://bootply.com/72995
You could download the plugin from: http://bootstrap-server.jasny.net/bootstrap-fileupload.zip You will got the javascript and css files needed. Or you could download: the file-upload.less and file-upload.js files from http://jasny.github.io/bootstrap/
Use this guide: http://www.bootply.com/migrate-to-bootstrap-3 to make your html compatible with Twitter's Bootstrap 3. (change classes like input-append in your css file too).
Good luck
if you want only bootstraped file input with bootstrap3 you can try this
http://www.abeautifulsite.net/blog/2013/08/whipping-file-inputs-into-shape-with-bootstrap-3/