jquery.fileupload.js:87 Uncaught TypeError: $.widget is not a function on jQuery-file-upload

Kokizzu picture Kokizzu · Apr 20, 2015 · Viewed 15.5k times · Source

I tried to use basic example (source) for jquery-file-upload, files that I've included in my html are:

jquery.js
bootstrap.css
bootstrap.js

jquery.fileupload.css
jquery.iframe-transport.js
jquery.fileupload.js

Is there anything else that I should include to properly use jquery-file-upload?

My app doesn't need to use jquery-ui. If jquery-ui is really a dependency to jquery-file-upload, is there any workaround to use it without jquery-ui?

Answer

Kokizzu picture Kokizzu · Apr 20, 2015

Nevermind, I should have read this first. Only jquery-ui.widget.js required, not whole jquery-ui.