# Upload a file through Webchat

**URL:** <https://forum.rasa.com/t/upload-a-file-through-webchat/38373>\
**Category:** Rasa Open Source\
**Created:** [December 23, 2020, 5:04pm UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373 "2020-12-23T17:04:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![forwitai](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/forwitai/32/9832_2.png) [@forwitai](https://forum.rasa.com/u/forwitai)\
**Post date:** [December 23, 2020, 5:04pm UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373/1 "2020-12-23T17:04:10Z")

</div>

Hi everyone,

Can someone please tell me how can I allow the user to upload a file (doc, pdf, etc.) and send it to the bot ? I’m using Webchat for my UI.

I found many topics discussing this, but no solution was given.

@JiteshGaikwad, can you help please ?

Thanks.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [December 24, 2020, 5:10pm UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373/2 "2020-12-24T17:10:06Z")

</div>

Please see this [post](http://forum.rasa.com/t/how-to-pass-images-in-the-rasa-custom-action-server/32657/8). You’ll need to choose and manage the storage location for the file. This would be part of your widget and Rasa wouldn’t be directly involved. You would inform the bot that the upload has completed by setting a slot.

---

<div class="post-metadata">

**Author:** ![forwitai](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/forwitai/32/9832_2.png) [@forwitai](https://forum.rasa.com/u/forwitai)\
**Post date:** [December 25, 2020, 2:39pm UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373/3 "2020-12-25T14:39:55Z")

</div>

Hi @stephens, thank you for your reply. Is there any example somewhere to guide me, I couldn’t find any.

Also, where can I find the conversations I have with my bot through Webchat. I can’t find them anywhere, should I handle this too ?

Thanks.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [December 27, 2020, 11:08pm UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373/4 "2020-12-27T23:08:13Z")

</div>

Most of the work (upload process) is not related to Rasa. I would look at the Webchat git repo and see if anyone has done anything with uploads and the widget. I’m sure you’ll also find plenty of React upload components that would be helpful in adding this to the webchat widget.

To review conversations, setup Rasa X. You can review all bot conversations no matter where they come from.

---

<div class="post-metadata">

**Author:** ![forwitai](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/forwitai/32/9832_2.png) [@forwitai](https://forum.rasa.com/u/forwitai)\
**Post date:** [December 28, 2020, 8:09am UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373/5 "2020-12-28T08:09:52Z")

</div>

Hi again @stephens ,

I’ve already checked the Webchat git repo, but unfortunately it’s not a feature anyone has implemented yet.

About Rasa X, I’m already using it. But I can’t find any conversation coming from Webchat. Any ideas ?

Thanks.

---

<div class="post-metadata">

**Author:** ![forwitai](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/forwitai/32/9832_2.png) [@forwitai](https://forum.rasa.com/u/forwitai)\
**Post date:** [December 28, 2020, 11:01am UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373/6 "2020-12-28T11:01:35Z")

</div>

I’m running Rasa X on port 5002, the action server on port 5055 and webchat on 5005.

I’ve already tried to run webchat on the same port as Rasa X, but it didn’t work. I can’t see my webchat widget.

can you please help ?

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [December 28, 2020, 4:13pm UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373/7 "2020-12-28T16:13:06Z")

</div>

Are you seeing conversations from the Talk to Your Bot page and from the Share Your Bot page?

---

<div class="post-metadata">

**Author:** ![forwitai](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/forwitai/32/9832_2.png) [@forwitai](https://forum.rasa.com/u/forwitai)\
**Post date:** [December 28, 2020, 5:05pm UTC](https://forum.rasa.com/t/upload-a-file-through-webchat/38373/8 "2020-12-28T17:05:50Z")

</div>

Hi @stephens. I was using Rasa X for a long period and it worked fine, I last tested it last week. Now that you asked, I went to check and the conversations’ retrieval was no longer working. I reinstalled Rasa X and now all is good.

Thank you so much sir.
