Use socketio.py for sending and receiving file attachments through our custom UI

Hey, so I am pretty new to Rasa community, the problem I am stuck at is that I want my users to upload files/attachments to the bot as an input and then rasa saves it to my database and replies with an affirmation. I am using SocketIO Channel for my bot with custom UI and I am not looking for a frontend solution, i want my custom action and socketio.py file to handle this query. I’ve been through the forum extensively but didn’t find a direct step by step solution for this purpose. would appreciate if anyone could help me on this since I am stuck for a long time now,
also I am using Rasa X