# How to skip .DS\_Store file in macos？

**URL:** <https://community.transloadit.com/t/how-to-skip-ds-store-file-in-macos/17504>\
**Category:** Uppy\
**Created:** [March 7, 2025, 3:10am UTC](https://community.transloadit.com/t/how-to-skip-ds-store-file-in-macos/17504 "2025-03-07T03:10:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Demi1024](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/demi1024/32/1345_2.png) [@Demi1024](https://community.transloadit.com/u/Demi1024)\
**Post date:** [March 7, 2025, 3:10am UTC](https://community.transloadit.com/t/how-to-skip-ds-store-file-in-macos/17504/1 "2025-03-07T03:10:52Z")

</div>

I want to implement a folder upload feature. When I upload a selected folder, unwanted hidden files like `.DS_Store` appear. How can I skip this file? Additionally, how can I exclude it from being counted when selecting the folder?

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [March 7, 2025, 8:28am UTC](https://community.transloadit.com/t/how-to-skip-ds-store-file-in-macos/17504/2 "2025-03-07T08:28:04Z")

</div>

Hi, you can use [`onBeforeFileAdded()`](https://uppy.io/docs/uppy/#onbeforefileaddedfile-files)
