I\'ve been trying to upload a file using Flask and HTML forms. Now I can save an uploaded file but it shows up empty (0 bytes). After that I store the form entries in a database
We don't really know what the class photos is, nor what it's method save does, but that's where the error is probably occurring.
photos
save
Try this instead:
request.files['photo'].save('test.jpg')