mirror of https://github.com/apache/cloudstack.git
Revert "Allow passing custom data in POST request"
This reverts commit e4d1049096.
This commit is contained in:
parent
e4d1049096
commit
f10709c756
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue