Added upload file functionality.