jasny / bootstrap

The missing components for your favorite front-end framework.
https://www.jasny.net/bootstrap/
Apache License 2.0
2.68k stars 496 forks source link

File Input Dynamically Add File to File Input #572

Closed Peace-N closed 5 years ago

Peace-N commented 6 years ago

I have been having a challenge with file input, i need to dynamically add file data to this widget, I have the data coming from the DB, so sort of preselected file ..

Help will be appreciated ..

Minstel commented 5 years ago

@Peace-N Hi! Sorry for not answering for so long, we didn't have time to review issues. Is your question still actual?

If so, do you mean it's preselected on page load, or after page load (file is selected from DB, say, via AJAX)?

jasny commented 5 years ago

This is possible with the .fileinput-new and .fileinput-exists classes.