Uploading screenshot to server from WebPlayer

Hi, community!
I have some troubles with uploading data(screenshot image) to the server from my application. I tried to use WWWFrom as it’s shown in manual (Unity - Scripting API: WWWForm). In Editor it works fine, but in WebPlayer appears error - Could not download http://…, but screenshot uploads to server.
I also tried to use WebClient.UploadData(). In Editor it works fine too, but in WebPlayer nothing is happens. Image does not uploads to the server. What kind of problem could it be? Maybe I should set up some settings of my browsers, or windows, or something else?

P.S. Sorry for my english :slight_smile:

You can output debug messages (with the print statement or Debug.Log) and find them in the webplayer log - see this manual page for further information. Try logging the WWW.error string after the download is supposed to have completed. This could give you a clue as to what is going wrong.

Thanks for reply. Logs is clear. In the case of using WWWForm, WWW.error contains this text:

In the case of using WebClient, Exception message contains only server script’s url, that should accept image.
But in the Editor everything works fine.

the editor and the webplayer don’t use the same WWW networking.

the webplayer uses the WWW networking of the browser and is restricted by it too.
also there are whole namespaces missing in the webplayer that can have an impact (like no file stuff, no System.Environment, …)

I am also trying to use WWWForm from the unity manual, but the perl script form is not listed. there is a highscore pl to go with the highscore script, but im not having much luck with the image upload?

Any pointers to some perl script i could juggle with :slight_smile:

(blatant plug for help as i know nothing about perl scripting!!)

There is a complete server side highscore example on the Unify wiki. The server code is written in PHP rather than Perl, but given that you’ve no particular commitment to Perl, this shouldn’t be a problem :wink: