Hey guys,
I’m currently trying to allow users to upload files via my unity app (connects to a PHP back-end).
I tried writing one myself using System.IO imported into JS but that only appears to compile for a standalone build - it doesn’t work with Web Player builds;
Does anyone know of a workable way to do this?
(And yes, I’ve seen http://www.unifycommunity.com/wiki/index.php?title=FileBrowser - I don’t want to spend ages converting a 2.0 C# script to 3.0 JS if it’s only going to throw the same problems at me).
You can not access the local system in any form with webbuilds, thats completely disabled for security reasons
Damn, that’s a bit of a spanner in the works.
Is it not even possible to pass through a file:// url for WWW to pull from via web builds?
(i.e. give an external HTML form and get Java to pull the filename/path and pass it to Unity)?
No will not work either.
As mentioned, no access to the local filesystem at all (with exception of player prefs that stores locally), you can only use WWW to load things and only to load them from a place on the web that complies to the security sandbox (see corresponding page in the manual)
Ergh, ok. I’ll get some external workaround going, then.
Thanks dude 