mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
dont attach path if undefined
This commit is contained in:
parent
895d059942
commit
0444461b2e
1 changed files with 2 additions and 1 deletions
|
@ -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+'">')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue