JQuery Form Plugin File Upload using POST redirects to POST response

后端 未结 5 1657
轮回少年
轮回少年 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:33

    Replace this.ajax("http://..." to url:form.attr('method')

      var form = $("#fileUploadForm");     
      $.ajax({
          type:form.attr('method'),
           url:form.attr('action'),
          data:form.serialize(),
                 success: function(data){
          }});
    

提交回复
热议问题