fix deprecated curl file uploading