upload file in JQuery

function imageManager(){
	var fd = new FormData(); 
	var files = $('#file')[0].files[0]; 
	fd.append('file', files); 

	$.ajax({
	  type:"POST",
	  url:"http://127.0.0.1/ajax/do-item.ajax.php",
	  data: fd, 
		contentType: false, 
		processData: false, 
	  beforeSend:function(){
		$("#ajax-file").html("Loading...");
	  },
	  success:function(data){
		$("#ajax-file").html(decodeURI(data));
	  }
	});
}

<?php
   var_dump($_FILES);
?>

54 thoughts on “upload file in JQuery

  1. Pingback: cialis 20mg price

  2. Pingback: where to buy cialis

  3. Pingback: order cialis online

  4. Pingback: Viagra australia

  5. Pingback: Real viagra

  6. Pingback: prices of cialis

  7. Pingback: goodrx cialis

  8. Pingback: viagra cialis

  9. Pingback: cialis dosage 40 mg

  10. Pingback: cialis 20 mg price walmart

  11. Pingback: viagra generic

  12. Pingback: viagra for sale

  13. Pingback: viagra 100mg

  14. Pingback: buy ed pills

  15. Pingback: top ed pills

  16. Pingback: best otc ed pills

  17. Pingback: canada online pharmacy

  18. Pingback: order levitra

  19. Pingback: vegas casino online

  20. Pingback: casino online gambling

  21. Pingback: discount viagra

  22. Pingback: online casinos real money

  23. Pingback: casino slots gambling

  24. Pingback: loans for bad credit

  25. Pingback: instant loans

  26. Pingback: installment loans

  27. Pingback: viagra 100mg

  28. Pingback: new cialis

  29. Pingback: cialis buy

  30. Pingback: cialis internet

  31. Pingback: cialis internet

  32. Pingback: 20 cialis

  33. Pingback: slot machine

  34. Pingback: best casino online

  35. Pingback: best online casino usa

  36. Pingback: viagra sildenafil

  37. Pingback: viagra for sale

  38. Pingback: best generic viagra

  39. Pingback: online cialis

  40. Pingback: casino online slots

  41. Pingback: buy cialis usa

  42. Pingback: cialis without prescriptions

  43. Pingback: buy cialis usa

  44. Pingback: best place to buy viagra online

  45. Pingback: 5mg cialis

  46. Pingback: viagra for sale in uk cheap

  47. Pingback: buy levitra in australia

  48. Pingback: female viagra pills uk

  49. Pingback: Pharmacy viagra

  50. Pingback: buy viagra online uk paypal

  51. Pingback: otc viagra australia

  52. Pingback: viagra 50 mg

  53. Pingback: cialis euros

  54. Pingback: Viagra original pfizer order

發表迴響