Fixed file upload in tasks.py