Sending File data to pvpython and get the image back and display on personal website

I am fairly new to paraview and have downloaded paraview onto my personal server. I have gotten pvpython to connect to my personal website. But am struggling to find a way to send a file that a user chooses to the pvpython server and then it sends back the data from that server. I.e the user picks a cone.foam file and the pvpython server reads that file and then the cone is displayed on my website.

Any help is welcome.