Skip to content

Instantly share code, notes, and snippets.

@kuflash
Created June 5, 2015 12:34
Show Gist options
  • Save kuflash/d44266fc6361b2309cdf to your computer and use it in GitHub Desktop.
Save kuflash/d44266fc6361b2309cdf to your computer and use it in GitHub Desktop.
$viewResponseForm.fileupload({
url: life.api.options.url + life.api.options.methods.mailSendMessage.path,
type: life.api.options.methods.mailSendMessage.type,
fileInput: $attacmentInput,
paramName: 'file',
xhrFields: {
withCredentials: true
},
add: function (e, data) {
console.log(data);
}
}).bind('fileuploadsend', function (e, data) {
data.formData = {
theme: '12',
text: '12',
targetId: 1
}
console.log('send files', data);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment