victims / victims-web

The victims web application.
GNU Affero General Public License v3.0
8 stars 5 forks source link

file submission was failing on reading file #139

Closed jasinner closed 8 years ago

jasinner commented 8 years ago

While testing file submission locally I found that I needed to make this change for a File to be submitted to the server correctly. Otherwise an DEBUG message appears and auth fails:

DEBUG: 'file' object has no attribute 'getvalue'

jasinner commented 8 years ago

I've actually realised that my changes causes the file to be uploaded with 0-length.