ruby on rails 3 - jquery-fileupload: getting "TypeError undefined function" error in production environment only -
ruby on rails 3 - jquery-fileupload: getting "TypeError undefined function" error in production environment only -
i'm using latest version of blueimp's jquery-fileupload library in rails 3.2.18 application.
everything working correctly in development environment, when deploy production environment, next error:
typeerror: undefined not function (evaluating 'fu._adjustmaxnumberoffiles(-files.length)')
this related alter in json result handling in jquery-fileupload library. necessary fixes applied codebase (at least, working in development)
i assumed issue may related asset pipeline -- js files not beingness included page, far can tell not case. differences between development , production result in type of jscript error?
this due changes in jquery-fileupload library. basically, referencing private function (_adjustmaxnumberoffiles) appears have been deprecated in newer versions of code.
removing line caused code function across environments.
jquery ruby-on-rails-3 jquery-plugins jquery-file-upload jquery-fileupload-rails
Comments
Post a Comment