Created
June 5, 2015 12:34
-
-
Save kuflash/d44266fc6361b2309cdf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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