Implemented file upload handling.