Handle file uploads