Use value instead of selectedOptions.

This commit is contained in:
culdev 2016-10-23 21:07:47 +02:00
parent e9ae7a794f
commit 8f384dc5ce

View File

@ -43,7 +43,7 @@ Dropzone.options.dropzone = {
},
sending: function(file, xhr, formData) {
formData.append("randomize", document.getElementById("randomize").checked);
formData.append("expires", document.getElementById("expires").selectedOptions[0].value);
formData.append("expires", document.getElementById("expires").value);
},
success: function(file, resp) {
file.fileActions.removeChild(file.progressElement);