# \[Fixed\]Send file to user (pdf, excel or word)

**URL:** <https://forum.rasa.com/t/fixed-send-file-to-user-pdf-excel-or-word/38673>\
**Category:** Rasa Open Source\
**Created:** [January 5, 2021, 3:17pm UTC](https://forum.rasa.com/t/fixed-send-file-to-user-pdf-excel-or-word/38673 "2021-01-05T15:17:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MariamHar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mariamhar/32/12920_2.png) [@MariamHar](https://forum.rasa.com/u/MariamHar)\
**Post date:** [January 5, 2021, 3:17pm UTC](https://forum.rasa.com/t/fixed-send-file-to-user-pdf-excel-or-word/38673/1 "2021-01-05T15:17:10Z")

</div>

Hello everybody!

I need to send an attachment file (excel and pdf) from the bot to the user using socketio channel. Can anyone advise how to do this? I am not sure if I have to send a local file saved on my pc or upload the file online and send the link. It is not working using the dispatcher.utter\_message.

Please advise.

Thank you in advance.

I have fixed the above issue. If you need any help regarding this one. I am ready to help.

---

<div class="post-metadata">

**Author:** ![DhanrajShirgire](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dhanrajshirgire/32/13520_2.png) [@DhanrajShirgire](https://forum.rasa.com/u/DhanrajShirgire)\
**Post date:** [February 23, 2021, 6:26am UTC](https://forum.rasa.com/t/fixed-send-file-to-user-pdf-excel-or-word/38673/2 "2021-02-23T06:26:12Z")

</div>

hi **MariamHar**

I want to share excel file generated by pandas data frame.

could please help how you did. please share you code snippet.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![MariamHar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mariamhar/32/12920_2.png) [@MariamHar](https://forum.rasa.com/u/MariamHar)\
**Post date:** [February 23, 2021, 6:42am UTC](https://forum.rasa.com/t/fixed-send-file-to-user-pdf-excel-or-word/38673/3 "2021-02-23T06:42:18Z")

</div>

Hi @DhanrajShirgire, you can find below the code: \

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/d1ee8445b0d4403b56a82930a081a0efea57fd79.png)

Replace doc\_path with your excel URL

---

<div class="post-metadata">

**Author:** ![suryakiran](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@suryakiran](https://forum.rasa.com/u/suryakiran)\
**Post date:** [August 9, 2021, 9:34am UTC](https://forum.rasa.com/t/fixed-send-file-to-user-pdf-excel-or-word/38673/4 "2021-08-09T09:34:48Z")

</div>

were you able to upload an attachment using above line .? i’m running rasa x on windows wsl2 .! i wanted to upload a file which is on wsl2 to rasa x chat bot ? can i do that i can see a parameter called attachment in utter\_message but it didn’t work well for me

---

<div class="post-metadata">

**Author:** ![suryakiran](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@suryakiran](https://forum.rasa.com/u/suryakiran)\
**Post date:** [August 9, 2021, 10:54am UTC](https://forum.rasa.com/t/fixed-send-file-to-user-pdf-excel-or-word/38673/5 "2021-08-09T10:54:00Z")

</div>

i would like to know whether you where able to upload a file on to rasa using attachement parameter without hosting a file on webserver

---

<div class="post-metadata">

**Author:** ![Akhil1278](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Akhil1278](https://forum.rasa.com/u/Akhil1278)\
**Post date:** [October 11, 2021, 7:36am UTC](https://forum.rasa.com/t/fixed-send-file-to-user-pdf-excel-or-word/38673/6 "2021-10-11T07:36:11Z")

</div>

Hi @MariamHar , Could u tell the steps for sending a file to a user.Thankyou
