- Home /
Question by
ExtremePowers · Feb 06, 2015 at 03:01 PM ·
wwwdownloadlocation
WWW Downloaded file
Where on the computer is the downloaded file located, when downloading for example a .zip file?
Comment
Best Answer
Answer by fafase · Feb 06, 2015 at 03:13 PM
I don't think it is anywhere on the hard drive, more likely in the RAM. So you would have to save it yourself after that:
WWW www = new WWW(url);
yield return www;
File.WriteAllBytes(path, www.bytes);
I get this error:
UnauthorizedAccessException: Access to the path 'C:/Users/Username/AppData/LocalLow/GameStudio/GameName' is denied.
No mather where I try to place it.
Try to put it somewhere you have rights. I would think AppData requires Ad$$anonymous$$ right. Try something simple to begin with, like:
C:/Users/Username/Desktop
Best would be to use
string path = Path.Combine(Application.persistentDataPath + "ItemName");
this one should be working.