Hi,
Is it possible to create a file upload input box within unity? I know it is possible to upload files using unity using the www class functions but I can't find anything for selecting a file from a local machine to then upload.
Thanks,
eb_dev
Hi,
Is it possible to create a file upload input box within unity? I know it is possible to upload files using unity using the www class functions but I can't find anything for selecting a file from a local machine to then upload.
Thanks,
eb_dev
You can question all files and folders trough the following code:
DirectoryInfo info = new DirectoryInfo(@"C:\");
foreach (FileInfo file in info.GetFiles())
{
Debug.Log(file.FullName);
}
Then get a filestream of your wanted file using
FileStream fileStream = new FileStream("Path here", FileMode.Open);
And use that stream in your upload. Dont forget to import System.IO.
(This code is C#, as far as i know you cannot do this with Javascript)
Can anyone tell me how to upload a scene file through Winscp? How should I save the file? I am having maximum trouble here.