Is it possible to exclude hidden files when uploading a directory?

219 Views Asked by At

When a user selects a directory from which to upload all documents, it might contain hidden files created by windows like thumbs.db

Is there any way of detecting, either on the front end or back end, whether a particular file was hidden?

Currently handling files uploads with bootstrap-vue and typescript

<b-form-file id="documentFolder"
             accept="allowedFileTypes"
             style="display:none;"
             @change="handleFolderSelected"
             :directory="true" />

handleFolderSelected(files: Array<File>) {
    // build form data - post files
}

I assume its just using a regular file input, but can't see anything useful there either


I'm recieving the files as IFormFiles using .net-5.0

Is this possible at all, or do I need to simply inform the user that they should remove all hidden files?

0

There are 0 best solutions below