I am creating an upload system for my flask app. When I upload a zip file I can access it in my app with request.data . However I don't know how to get the size of the file . I've tried request.data.read() but It doesn't work . I get the following error :
'bytes' object has no attribute 'read'
I've also tried request.data.tell() request.data.seek() etc.
Any suggestion ?