# ODK 2 survey upload file

**URL:** <https://forum.odk-x.org/t/odk-2-survey-upload-file/414>\
**Category:** Support\
**Created:** [January 15, 2019, 2:53pm UTC](https://forum.odk-x.org/t/odk-2-survey-upload-file/414 "2019-01-15T14:53:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taskaris](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/taskaris/32/33_2.png) [@taskaris](https://forum.odk-x.org/u/taskaris)\
**Post date:** [January 15, 2019, 2:53pm UTC](https://forum.odk-x.org/t/odk-2-survey-upload-file/414/1 "2019-01-15T14:53:06Z")

</div>

Hi,

Is it possible to upload a file from my device in a survey in ODK 2?

Thanks!

---

<div class="post-metadata">

**Author:** ![W\_Brunette](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/w_brunette/32/376_2.png) [@W\_Brunette](https://forum.odk-x.org/u/W_Brunette)\
**Post date:** [January 15, 2019, 4:12pm UTC](https://forum.odk-x.org/t/odk-2-survey-upload-file/414/2 "2019-01-15T16:12:45Z")

</div>

What type of file? I think you can attach pictures. Not sure if the code checks for file types so you might be able to attach anything.

What is your use case what files are you trying to upload?

---

<div class="post-metadata">

**Author:** ![linl33](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/l/b487fb/32.png) [@linl33](https://forum.odk-x.org/u/linl33)\
**Post date:** [January 16, 2019, 5:01am UTC](https://forum.odk-x.org/t/odk-2-survey-upload-file/414/3 "2019-01-16T05:01:00Z")

</div>

There are prompts for attaching images, videos and audio clips.

For arbitrary file types, see the discussion in

> [@Upload a file and get authorization](https://forum.odk-x.org/t/upload-a-file-and-get-authorization/359):
>
> What is the problem? In ODK v1 there’s a question type that let the user upload a file in a survey, in ODK 2.0 there isn´t a prompt type that let me do it. Is there a simple way to do it o should I create a custom prompt type for this matter? Plus, once a file is uploaded I need another person to authorize the file, I read that this couls be accomplish by a bi-directional syncronization, is there a place when I can learn how to do this? Haven´t found it on the docs. What ODK tool and version…

---

<div class="post-metadata">

**Author:** ![taskaris](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/taskaris/32/33_2.png) [@taskaris](https://forum.odk-x.org/u/taskaris)\
**Post date:** [January 16, 2019, 10:08am UTC](https://forum.odk-x.org/t/odk-2-survey-upload-file/414/4 "2019-01-16T10:08:41Z")

</div>

Hi Brunette,

Unfortunately, there is a code checker… I want to attach pdf.

I have to make a custom prompt type.

Thanks
