Added file upload functions