javascript - Delete from form = new DataForm -




i need delete .append() form create form = new dataform(); want add several images in database , throw these ajax, without delete cache, code this, there mistake ?

 var imagen_src = $("#imagen_evidencia").prop('files')[0];  $("#imagen_evidencia").val('');  var form = new formdata();  form.append('file', imagen_src);  arreglo = json.stringify(arreglo_spam_cdc);  type = json.stringify(tipo);  fecha = json.stringify(today);  form.append('tipo', type);  form.append('fecha', fecha);  form.append('arreglo_spam_cdc', arreglo);   $.ajax({      type: 'post',      url: '../admin/insertar_spam.php',      datatype: 'json',      data: form,      contenttype: false,      cache: false,      processdata: false,      success: function(data) {           console.log(data);          var id_name = arreglo_spam_cdc[0]['id_facebook'];          console.log(id_name);          mostrar_cdc(id_name);       }    }); 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -