pull/1/head
tanghc 5 years ago
parent e47cd0e002
commit 5b2b9e4c57
  1. 2
      sop-website/src/main/resources/public/pages/sandbox/sandbox.js

@ -227,7 +227,7 @@ function postFile(data, formData) {
function downloadFile(data) { function downloadFile(data) {
$('.dl-form').remove(); $('.dl-form').remove();
var url = SopConfig.url + '/sandbox/test'; var url = SopConfig.url + '/sandbox/test';
var form = $('<form class="dl-form"></form>').attr("action", url).attr("method", "get"); var form = $('<form class="dl-form"></form>').attr("action", url).attr("method", "post");
for(var key in data) { for(var key in data) {
form.append($("<input>").attr("type", "hidden").attr("name", key).attr("value", data[key])); form.append($("<input>").attr("type", "hidden").attr("name", key).attr("value", data[key]));
} }

Loading…
Cancel
Save