search

Home  >  Q&A  >  body text

javascript - How to filter out hidden files in a folder when dragging a folder to upload

When using the jQuery-File-Upload plug-in, you can drag files or folders to upload. When dragging a folder to upload, all files (including hidden files) are uploaded by default, but the requirement is not to upload hidden files. .
For example, there are 6 files in this folder, 3 of which are hidden, but there is no way to distinguish whether they are hidden or not. Is there any way to filter out the hidden files? Thank you~

阿神阿神2848 days ago848

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-19 10:46:58

    Traverse the files, files starting with . are hidden files.

    reply
    0
  • Cancelreply