# How to receive an image in a form,

**URL:** <https://forum.rasa.com/t/how-to-receive-an-image-in-a-form/52011>\
**Category:** Rasa Open Source\
**Created:** [March 16, 2022, 2:44pm UTC](https://forum.rasa.com/t/how-to-receive-an-image-in-a-form/52011 "2022-03-16T14:44:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredseidler](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fredseidler/32/19535_2.png) [@fredseidler](https://forum.rasa.com/u/fredseidler)\
**Post date:** [March 16, 2022, 2:44pm UTC](https://forum.rasa.com/t/how-to-receive-an-image-in-a-form/52011/1 "2022-03-16T14:44:09Z")

</div>

Hi there team!

I am trying to collect some user information, starts with info like name/city etc and then I would like the user to send in an image.

I will then have an action look at a Twilio Url of the sent in media and add it to some database. All that needs to occur is that the media file is detected by rasa, and an action is triggered that can then make an API request to twilio to examine it.

My form can request the media, but it throws an attribute error when one is sent in by the user. I have thought about

Has anyone got any advice? thanks

---

<div class="post-metadata">

**Author:** ![Gehova](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gehova](https://forum.rasa.com/u/Gehova)\
**Post date:** [March 22, 2022, 11:26pm UTC](https://forum.rasa.com/t/how-to-receive-an-image-in-a-form/52011/2 "2022-03-22T23:26:42Z")

</div>

First, let me see if I understood you correctly. Do you want to send an image to your bot? Like this:

bot: Please send me the image. user: sends image. bot: Download the image and process it.

---

<div class="post-metadata">

**Author:** ![fredseidler](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fredseidler/32/19535_2.png) [@fredseidler](https://forum.rasa.com/u/fredseidler)\
**Post date:** [March 23, 2022, 10:52am UTC](https://forum.rasa.com/t/how-to-receive-an-image-in-a-form/52011/4 "2022-03-23T10:52:18Z")

</div>

> [@Gehova](#):
>
> First, let me see if I understood you correctly. Do you want to send an image to your bot? Like this:
> 
> bot: Please send me the image. user: sends image. bot: Download the image and process it.

Correct yes 🙂

---

<div class="post-metadata">

**Author:** ![fredseidler](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fredseidler/32/19535_2.png) [@fredseidler](https://forum.rasa.com/u/fredseidler)\
**Post date:** [March 23, 2022, 10:52am UTC](https://forum.rasa.com/t/how-to-receive-an-image-in-a-form/52011/5 "2022-03-23T10:52:39Z")

</div>

and then once it has been downloaded and processed, return a response to the user

---

<div class="post-metadata">

**Author:** ![Gehova](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gehova](https://forum.rasa.com/u/Gehova)\
**Post date:** [March 23, 2022, 8:12pm UTC](https://forum.rasa.com/t/how-to-receive-an-image-in-a-form/52011/6 "2022-03-23T20:12:19Z")

</div>

I’ve done that with Telegram. What Twilio api are you using? Does it say something about receiving images?
