Hi,
When i try to download a file from out webserver, most of the time.
It will only create/recive a 1kb file.
Any idea why ?
private IEnumerator FileDownloader(string FileLink,string name)
{
Debug.Log("current path " + path);
DownloadProgress = "";
Debug.Log("Downloading from "+FileLink);
WWW www = new WWW(FileLink);
while (!www.isDone)
{
DownloadProgress = "Downloading " + (www.progress * 100).ToString() + "% ...";
Debug.Log(DownloadProgress);
yield return null;
}
DownloadProgress = "100 % "+name;
Debug.Log(DownloadProgress);
File.WriteAllBytes(path + "//" + name + ".pdf",www.bytes);
}