I\'m uploading a small file (8.5 Mb) to a flask test server.
When the file finishes uploading, the server reports:
File \"/home/ubuntu/.virtualenvs/e
@Tom Hunt's comment was on the right track.
This unix SE answer explains what happened.
As a protection against low disc space, some daemons automatically "shadows" the current /tmp/ dir with a ram disc if the the root partition runs out of disc space. Sadly there's no automatic reversion of that process once enough disc space is free again.
I unmounted /tmp directory and followed Nitesh's suggestion:
sudo umount /tmp
sudo echo 'MINTMPKB=0' > sudo /etc/default/mountoverflowtmp
and now uploads are working properly.