0

I am using following part of code in ember

<form id="UserProfileForm" method="POST" enctype="multipart/form-data">
<input type="file" name="file" id="abc1">
<label>{{ view.fileName }}</label>
</form>

And I am using following code to submit file object to controller.

var settings = {
            dataType: 'text',
            target: '#response',                   // target element(s) to be updated with server response 
            success: function () {debugger},             // post-submit callback
            url: '/audio/upload',
            type: 'POST',
            error: function (e) {debugger}
        };
        $("#UserProfileForm").ajaxSubmit(settings);

But internally .ajaxSubmit using formToArray and its failing

Same part of code is working when I use it in JSP page.

Thanks in advance...

Kingpin2k
  • 47,277
  • 10
  • 78
  • 96
rs4706
  • 61
  • 4
  • You'll probably get more help if you describe how it's failing, such as what error you're getting. – Matt Feb 06 '14 at 15:19
  • I am getting no any error. "formToArray" is not returning any object, So I am getting nothin in controller. – rs4706 Feb 06 '14 at 15:33

0 Answers0