我的代碼發佈了ajax請求,但沒有顯示進度條。請幫助更正代碼以顯示工作進度欄。如何在ajax文件上傳中顯示進度條
$(document).ready(function() {
$("#uploadbutton").click(function() {
var filename = $("#file_path$i").val(); //get form data;
$.ajax({
type: "html",
url: "share.php",//onwhich post ajax data;
enctype: 'multipart/form-data',
data: {
file: filename
},
success: function() {
alert("Data Uploaded: ");
}
});
});
});