How to access fineuploader parameters onComplete function?

℡╲_俬逩灬. 提交于 2019-12-01 10:05:53

问题


   manualuploader.fineUploader('setParams', {
        foo: bar
      });

  var manualuploader = $('#manual-fine-uploader').fineUploader({
    .
    .
    .

  })
  .on('submit', function(event, id, name) {
    .
    .

  }).on('complete', function(event, id, fileName, responseJSON) {

   // HOW CAN I ACCESS TO foo -parameter HERE?

    }
  });

回答1:


The responseJSON parameter will include any and all keys and values returned in your server's response to the upload request. The setParams function is used to send parameters in the upload request to your server. If, for some reason, you want to make these same values available to your complete callback, simply include them in your server's response.



来源:https://stackoverflow.com/questions/15991042/how-to-access-fineuploader-parameters-oncomplete-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!