<scriptsrc="{{url_for('admin.static', filename='js/ext/fileInput/plugins/piexif.min.js')}}"type="text/javascript"></script> <!-- sortable.min.js is only needed if you wish to sort / rearrange files in initial preview. This must be loaded before fileinput.min.js --> <scriptsrc="{{url_for('admin.static', filename='js/ext/fileInput/plugins/sortable.min.js')}}"type="text/javascript"></script> <!-- purify.min.js is only needed if you wish to purify HTML content in your preview for HTML files. This must be loaded before fileinput.min.js --> <scriptsrc="{{url_for('admin.static', filename='js/ext/fileInput/plugins/purify.min.js')}}"type="text/javascript"></script> <!-- popper.min.js below is needed if you use bootstrap 4.x. You can also use the bootstrap js 3.3.x versions without popper.min.js. --> <scriptsrc="{{url_for('admin.static', filename='js/ext/popper.min.js')}}"></script> <!-- the main fileinput plugin file --> <scriptsrc="{{url_for('admin.static', filename='js/ext/fileInput/fileinput.min.js')}}"></script> <!-- optionally if you need a theme like font awesome theme you can include it as mentioned below --> <scriptsrc="{{url_for('admin.static', filename='js/ext/fileInput/themes/fa/theme.js')}}"></script> <!-- optionally if you need translation for your language then include locale file as mentioned below --> <scriptsrc="{{url_for('admin.static', filename='js/ext/fileInput/locales/zh.js')}}"></script>