Commit 36483f13 authored by JamesK's avatar JamesK Committed by Primsi
Browse files

Issue #2681349 by JamesK, neardark: "undefined" being prepended to upload input

parent c78e756a
......@@ -32,7 +32,7 @@
// React on add file. Add only accepted files.
dropzoneInstance.on("success", function (file, response) {
var uploadedFilesElement = selector.siblings(':hidden');
var currentValue = uploadedFilesElement.attr('value');
var currentValue = uploadedFilesElement.attr('value') || '';
// The file is transliterated on upload. The element has to reflect
// the real filename.
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