Using www form to Browse for picture file, replaces te

Hi

I have searched the forums for an answer to this but found a few conflicting results so I will be more specific…

Something we used in TurnTool a fair bit was the ability to use a standard html form with a file browser field, when the user clicked the browse button and selected a file (e.g. a TGA image) we could instantly (no uploading) replace a texture in the 3D view with that image including alpha.

Is that possible in unity using the www class?

Thanks for any help.

the webplayer can not access the local file system

So it doesn’t matter if we use vanilla JavaScript to get a file path to a local image, the web player can’t use it?

:cry:

right, you can only load data from the web, not from the local file system.

The webplayer has all possibilities to access local files disabled for security reasons

Well I hope that Unity can add it in.

Flash 10 supports local file access and they are quite big on security too :slight_smile:

You can for example allow end users to preview and place their local designs on 3D models before sending (which could be a large high res file) to the server.