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