0

I am using Blueimp JqueryFileUpload, when i tried to upload my very first file its not uploading. But After i tried the same file or any file its working.

I can't figure out whats goes wrong for the very first upload.

While debugging i can found that the fileupload method not triggered for the first upload but followed consecutive uploads say second,third,.. its triggering

           $('#fileUpload').fileupload({
                url: 'home/upload',
                dataType: 'json',
                done: function (e, data) {
                   //do something
                }
            });

2 Answers 2

2

Are you generating the input file field after the page loads? I had the same issue because I forgot to initialize .fileupload() after the input field was appended.

Sign up to request clarification or add additional context in comments.

Comments

2

Initialize .fileupload() method after form or form field is generated. like

$('#fileupload'+rowNum).fileupload();

here $('#fileupload'+rowNum) is a dynamic form id.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.