jQuery.ajaxFileUpload({
url: '<?php echo base_url(); ?>profile_pic/prof_photo_upload',
secureuri: true,
fileElementId: 'photoimg',
dataType: 'html',
success: function(resp){
$('.right-register-container-left-rows-fields').html(resp);
}
});
答案 0 :(得分:0)
您正在将对象传递给ajaxFileUpload,要添加更多参数,只需向对象添加新属性,例如:
jQuery.ajaxFileUpload({
url: '<?php echo base_url(); ?>profile_pic/prof_photo_upload',
type: "POST",
secureuri: true,
fileElementId: 'photoimg',
dataType: 'html',
data: {
somedata: "XXX",
moredata: "YYY"
},
success: function(resp) {
$('.right-register-container-left-rows-fields').html(resp);
}
});