I'm trying to get name from current uploaded file, I'm sure I'm pretty close, but can't reach exact name. When I'm using this:
$('.technicalDraw').on('change', '#file-upload', function () {
console.log($(this.files))
})
but when I'm trying something like this:
$('.technicalDraw').on('change', '#file-upload', function () {
console.log($(this.files.name))
})
I recive this:
How can I reach filename.pdf?
Cheers


this.files[0].namethis.files[0]not$(this.files[0])- if you're gettingjquery.fn.initthen you've used$()somewhere