Handle file upload