且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

BlueImp / jQuery的文件上传

更新时间:2023-12-04 20:53:34

您可以使用的 FORMDATA

$('#fileupload').bind('fileuploadsubmit', function (e, data) {
    // The example input, doesn't have to be part of the upload form:
    var input = $('#divHostApplicationId');
    data.formData = {example: input.val()};
    if (!data.formData.example) {
      input.focus();
      return false;
    }
});