Handle file uploading.