# Drag and drop file and obtain path

**URL:** <https://discourse.processing.org/t/drag-and-drop-file-and-obtain-path/16737>\
**Category:** Coding Questions\
**Created:** [December 30, 2019, 6:31pm UTC](https://discourse.processing.org/t/drag-and-drop-file-and-obtain-path/16737 "2019-12-30T18:31:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![molo32](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@molo32](https://discourse.processing.org/u/molo32)\
**Post date:** [December 30, 2019, 6:31pm UTC](https://discourse.processing.org/t/drag-and-drop-file-and-obtain-path/16737/1 "2019-12-30T18:31:29Z")

</div>

How drag and drop file inside screen sketch and obtain path of file.

do not use the sDrop library

---

<div class="post-metadata">

**Author:** ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Post date:** [December 30, 2019, 8:00pm UTC](https://discourse.processing.org/t/drag-and-drop-file-and-obtain-path/16737/2 "2019-12-30T20:00:40Z")

</div>

You don‘t you want to use sDrop?

As far as i can tell, you can just take a look at the github Code of sDrop to see how it works.

In any case i‘d still consider using sDrop (or similar libraries) instead of attempting to do this yourself. It‘s not really worth it, unless you don‘t have any other way. And as far as i can tell, sDrop seems to be pretty straight forward to use.

---

<div class="post-metadata">

**Author:** ![trackme518](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@trackme518](https://discourse.processing.org/u/trackme518)\
**Post date:** [January 3, 2022, 2:40pm UTC](https://discourse.processing.org/t/drag-and-drop-file-and-obtain-path/16737/3 "2022-01-03T14:40:57Z")

</div>

sDrop library does not work with P2D or P3D renderers.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [January 3, 2022, 3:37pm UTC](https://discourse.processing.org/t/drag-and-drop-file-and-obtain-path/16737/4 "2022-01-03T15:37:51Z")

</div>

There is a modification of sDrop called ‘Drop’ which you could try:[https://transfluxus.github.io/drop/](https://transfluxus.github.io/drop/) .
