File-Task objects; Refactored attachment upload (moved complicated code to utils)