jquery.fileupload-rails icon indicating copy to clipboard operation
jquery.fileupload-rails copied to clipboard

Uncaught TypeError: Cannot call method 'push' of undefined jquery.fileupload-ui.js:676

Open dinatih opened this issue 11 years ago • 3 comments

Hi!

I got this error that I didn't have before, can you help me? Am I only the one who got this error?

in

        _create: function () {
            parentWidget.prototype._create.call(this);
            this._refreshOptionsList.push(
Uncaught TypeError: Cannot call method 'push' of undefined
                'filesContainer',
                'uploadTemplateId',
                'downloadTemplateId'
            );
            if (!$.blueimpFP) {
                this._processingQueue = $.Deferred().resolveWith(this).promise();
                this.process = function () {
                    return this._processingQueue;
                };
            }
        },

_refreshOptionsList seems to not been defined anymore :s, and in last version of jquery.fileupload-rails there is no more _refreshOptionsList in the file jquery.fileupload-ui.js.

version of gem: jquery.fileupload-rails-1.5.1

p.s: I recently update to Jquery 2.0 maybe it is the one that cause the probleme

Thanks you.

dinatih avatar May 28 '13 08:05 dinatih

But it works fine, if I force the version to the 1.5.0

dinatih avatar May 28 '13 08:05 dinatih

Before v. 1.0 I was updating all assets by hand, but now a script does that for me. It lacks jquery.fileupload-ui assets because I don't know how to use it in Rails. The old files are still there but they are not updated.

The latest jquery.fileupload is probably not compatible with the old UI extension, this is why you get the error.

I will look if I can add jquery.fileupload-ui assets to the script so that they are up-to-date again.

semaperepelitsa avatar May 28 '13 09:05 semaperepelitsa

Ok, thanks you!

dinatih avatar May 28 '13 09:05 dinatih