Revert "Allow passing custom data in POST request"

This reverts commit e4d1049096.
This commit is contained in:
Jessica Wang 2015-01-19 15:56:13 -08:00
parent e4d1049096
commit f10709c756
2 changed files with 1 additions and 16 deletions

View File

@ -110,11 +110,7 @@
fileUpload: {
getURL: function(args) {
args.response.success({
url: 'http://10.223.183.3/test-upload.php',
data: {
testData1: '1',
testData2: '2'
}
url: 'http://10.223.183.3/test-upload.php'
});
},
postUpload: function(args) {

View File

@ -701,17 +701,6 @@
var $file = $form.find('input[type=file]');
var $field = $file.closest('.form-item .value');
// Add additional passed data
$.map(successArgs.data, function(v, k) {
var $hidden = $('<input>').attr({
type: 'hidden',
name: k,
value: v
});
$hidden.appendTo($frameForm);
});
$uploadFrame.css({ width: $field.outerWidth(), height: $field.height() }).show();
$frameForm.append($file);
$field.append($uploadFrame);