I have a Tornado web application where I want to read the an uploaded file. This is received from the client and I try to do so like this:
def post(self):
    file = self.request.files['images'][0]
    dataOpen = open(file['filename'],'r');
    dataRead = dataOpen.read()
But it gives an IOError:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\tornado\web.py", line 1332, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "C:\Users\rsaxdsxc\workspace\pi\src\Server.py", line 4100, in post
    dataOpen = open(file['filename'],'r');
  IOError: [Errno 2] No such file or directory: u'000c02c55024aeaa96e6c79bfa2de3926dbd3767.jpg'
Why isn't it able to see the file?
 
     
     
    