Question by
ArIaNFury008 · Feb 04 at 07:54 AM ·
wwwwebrequest
unity WebRequest - Windows security
Hi guys I have problem with Windows Antivirus I downloaded a zip file from the IPFS My code :
using (UnityWebRequest wwwAssetsDownloader = UnityWebRequest.Get(JsonData[3]))
{
yield return wwwAssetsDownloader.Send();
if (wwwAssetsDownloader.isNetworkError || wwwAssetsDownloader.isHttpError)
{
Debug.Log(wwwAssetsDownloader.error);
}
else
{
string savePath = string.Format("{0}/{1}.zip", Application.persistentDataPath, "myZipFile");
print("Path Zip file : " + savePath);
System.IO.File.WriteAllBytes(savePath, wwwAssetsDownloader.downloadHandler.data);
}
}
it works fine if I disable my Windows defender . But if my Windows security is enabled, the file will be blocked or damaged How can I show that the file is not a virus. I can not tell my users to disable their antivirus ! PLEASE HELP , THANKS .
Comment