I have a web app build with pyramid. One of the endpoints /foo
is connected to the method foo(request)
:
def foo(request):
file = request.POST['my_file'].file
...do stuff with file...
I then send a file to the endpoint using postman. The problem is, the file is opened as a BufferedRandom
in binary mode, but I need to manipulate the file in text mode. Is it possible to do this?