Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am having problem in jquery fileupload, I have included jqueryfileupload, written js for fileupload, but when i now drag and drop the file on the selected area, it throw error in chrome something like this-

Uncaught RangeError: Maximum call stack size exceeded. and in mozilla. my browser just hang up.

Although my same code is running in my another project. Thanks

share|improve this question
    
please share some code, like what you have tried or infected portion of your code so others can propose a solution. –  Rohit416 May 17 '13 at 5:52
    
it is a normal code for jquery fileupload, but yes i got an another error of WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true. In my console when I drop a file. –  railsman May 17 '13 at 6:31

1 Answer 1

I get the same error. I comment two lines into the onChange method.

_onChange: function (e) {
    var that = this,
        data = {
            fileInput: $(e.target),
            form: $(e.target.form)
        };
    this._getFileInputFiles(data.fileInput).always(function (files) {
        data.files = files;
        if (that.options.replaceFileInput) {
            that._replaceFileInput(data.fileInput);
        }
        /**
        *IF I put on comment this line, this solve my problem without meeting                
          bug. I don't measure the consequence.
        **/
        //if (that._trigger('change', e, data) !== false) {
            that._onAdd(e, data);
        //}
    });
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.