JQuery Form Plugin File Upload using POST redirects to POST response

后端 未结 5 1692
轮回少年
轮回少年 2021-01-19 01:34

Please help guys, This one is a major BLOCKER!

I have a project that uses NodeJS + jQuery Form Plugin + Typescript in which I am trying to do a file

5条回答
  •  没有蜡笔的小新
    2021-01-19 02:30

    var form = $("#fileUploadForm");     
     $.ajax({
          type:form.attr('method'),
          url:form.attr('action'),
          dataType: 'json', //  Expect a return value of json
          data:form.serialize(),
                 success: function(data){
          }});
    

提交回复
热议问题