Commit 100f3c2e authored by Lukas Böhm's avatar Lukas Böhm 🎱
Browse files

transfer parameters when uploading

parent afd15c60
Pipeline #59933 passed with stages
in 2 minutes and 31 seconds
......@@ -52,8 +52,7 @@
<div class="collapse" id="collapseExample">
<div class="row form-group">
<p class="custom-control custom-switch col">
<input class="custom-control-input" id="is_public" name="is_public" type="checkbox"
value="y">
<input class="custom-control-input" id="is_public" name="is_public" type="checkbox" value="y">
<label class="custom-control-label" for="is_public">Öffentlich</label>
</p>
<div class="col">
......@@ -120,8 +119,11 @@
},
"data": JSON.stringify({ // TODO
"name": $("#name").val(),
"download_limit": $("#download_limit").val(),
"is_public": $("#is_public").val()
"expires": null,
"download_limit": parseInt($("#download_limit").val()),
"is_public": $('#is_public').is(':checked'),
"password": $("#password").val(),
"emails": [$("#email").val()],
}),
}).done((response) => {
share = response;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment