lib/app/appforms/submissions.js
function uploadSubmissionFile(params, cb) {
  var resourcePath = config.addURIParams("/appforms/submissions/:id/fields/:fieldId/files/:fileId", params);
  var method = "POST";
  var data = params.fileDetails;

  params.resourcePath = resourcePath;
  params.method = method;
  params.data = data;

  //Flagging This Request As A File Request
  params.fileRequest = true;
  params.fileUploadRequest = true;

  mbaasRequest.app(params, cb);
}
function uploadSubmissionFile(params, cb) {
  var resourcePath = config.addURIParams("/appforms/submissions/:id/fields/:fieldId/files/:fileId", params);
  var method = "POST";
  var data = params.fileDetails;

  params.resourcePath = resourcePath;
  params.method = method;
  params.data = data;

  //Flagging This Request As A File Request
  params.fileRequest = true;
  params.fileUploadRequest = true;

  mbaasRequest.app(params, cb);
}
function uploadSubmissionFile ( params , cb ) { var resourcePath = config . addURIParams ( "/appforms/submissions/:id/fields/:fieldId/files/:fileId" , params ) ; var method = "POST" ; var data = params . fileDetails ; params . resourcePath = resourcePath ; params . method = method ; params . data = data ; //Flagging This Request As A File Request params . fileRequest = true ; params . fileUploadRequest = true ; mbaasRequest . app ( params , cb ) ; }
Upload A File Associated With A Submission
Upload A File Associated With A Submission