Implemented file upload functionality