LoginSignup
1
1

More than 5 years have passed since last update.

FormDataでappendしたら''append' called on an object that does not implement interface FormData."とでる理由

Last updated at Posted at 2015-03-16

jqueryを使っているから。
processData: false,
contentType: false,
を設定する。

$.ajax({
    url : "/upload.php",
    type: "POST",
    data : postData,
    processData: false,
    contentType: false,
    success:function(data){
        //success
    },
    error: function(jqXHR, textStatus, errorThrown){
        //fail   
    }
});
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1