# Edit channel.py - rasa core

**URL:** <https://forum.rasa.com/t/edit-channel-py-rasa-core/15171>\
**Category:** Getting Started with Rasa\
**Created:** [September 3, 2019, 2:21pm UTC](https://forum.rasa.com/t/edit-channel-py-rasa-core/15171 "2019-09-03T14:21:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ines](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@ines](https://forum.rasa.com/u/ines)\
**Post date:** [September 3, 2019, 2:21pm UTC](https://forum.rasa.com/t/edit-channel-py-rasa-core/15171/1 "2019-09-03T14:21:51Z")

</div>

Hi everyone, hope you are doing well !

So I’m trying to upload a file (pdf) to my chatbot and then do something with it’s content , like extracting the text. My connection between the chatbot and UI it’s through socket io, and in my UI I’m trying to send the file like a message. It’s possible to modify the channel.py to be able to handle a file instead of only text ?

I really don’t know if this it’s the right approach to my problem, so if anyone has another way of doing this I would love to read your opinions!

Thank you

---

<div class="post-metadata">

**Author:** ![msamogh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/msamogh/32/3478_2.png) [@msamogh](https://forum.rasa.com/u/msamogh)\
**Post date:** [September 23, 2019, 10:06am UTC](https://forum.rasa.com/t/edit-channel-py-rasa-core/15171/2 "2019-09-23T10:06:23Z")

</div>

You can create your custom channel where you can handle the `request` object in any way you want (and that includes doing file-related things). You can find the documentation on that here - [Custom Connectors](https://rasa.com/docs/rasa/user-guide/connectors/custom-connectors/).

---

<div class="post-metadata">

**Author:** ![ines](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@ines](https://forum.rasa.com/u/ines)\
**Post date:** [September 25, 2019, 2:49pm UTC](https://forum.rasa.com/t/edit-channel-py-rasa-core/15171/3 "2019-09-25T14:49:57Z")

</div>

Thank you @msamogh for your response!

---

<div class="post-metadata">

**Author:** ![ankan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ankan/32/5202_2.png) [@ankan](https://forum.rasa.com/u/ankan)\
**Post date:** [March 22, 2020, 7:10am UTC](https://forum.rasa.com/t/edit-channel-py-rasa-core/15171/4 "2020-03-22T07:10:55Z")

</div>

Could you please show me the custom code?
