How to get file name from "File Field" in AutoForm?


#1

I use file field in autoForm.
I would to get file name

{{> afQuickField name='uploadFile' accept=".tar"}}

AutoForm.hooks({
    fileUpload: {
        onSubmit: function (insertDoc, updateDoc, currentDoc) {
            ................; // get file name

Please help me.