# Why does Uppy uses classes instead of data to attach itself

**URL:** <https://community.transloadit.com/t/why-does-uppy-uses-classes-instead-of-data-to-attach-itself/15323>\
**Category:** Uppy\
**Created:** [June 22, 2020, 4:58am UTC](https://community.transloadit.com/t/why-does-uppy-uses-classes-instead-of-data-to-attach-itself/15323 "2020-06-22T04:58:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmitov](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kmitov/32/236_2.png) [@kmitov](https://community.transloadit.com/u/kmitov)\
**Post date:** [June 22, 2020, 4:58am UTC](https://community.transloadit.com/t/why-does-uppy-uses-classes-instead-of-data-to-attach-itself/15323/1 "2020-06-22T04:58:54Z")

</div>

Hi,

I keep using Uppy and I keep wondering. Why does it attach itself to divs with classes and not to divs with data elements? I assume there is an underlying reason and it would be great if you could share.

It might be a thing of personal preferences, but it kind of feels something is off when there is no style attached to a class, but the class value is used just for querying.

Thanks

---

<div class="post-metadata">

**Author:** ![goto-bus-stop](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/goto-bus-stop/32/18_2.png) [@goto-bus-stop](https://community.transloadit.com/u/goto-bus-stop)\
**Post date:** [June 29, 2020, 12:17pm UTC](https://community.transloadit.com/t/why-does-uppy-uses-classes-instead-of-data-to-attach-itself/15323/2 "2020-06-29T12:17:32Z")

</div>

Users can attach it with any query selector they like, including classes and data attributes. When we use classes on the website and stuff it’s probably just habit and not for any reason 🙂
