dont attach path if undefined

This commit is contained in:
Kyle Drake 2019-10-07 00:10:30 -07:00
parent 895d059942
commit 0444461b2e

View file

@ -337,7 +337,8 @@
})
this.on("sending", function(file) {
$('#uploads').append('<input type="hidden" name="file_paths[]" value="'+file.fullPath+'">')
if(file.fullPath !== undefined)
$('#uploads').append('<input type="hidden" name="file_paths[]" value="'+file.fullPath+'">')
})
}
}