I am looking for a FTP upload example to use inside my PostProcessBuild function.
I have found an example here, but i keep getting a crossdomain policy error.
What am I doing wrong?
Kind regards
Jesper
I am looking for a FTP upload example to use inside my PostProcessBuild function.
I have found an example here, but i keep getting a crossdomain policy error.
What am I doing wrong?
Kind regards
Jesper
I suspect it is related to the webplayer sandbox?
It was my impression that FTP has nothing to do with crossite.xml files.
Jesper
I’m not entirely sure if that is related to the webplayer (emulation) but afaik, in flash you would have a crossdomain socket policy, since ftp is a 21 port you connect with a socket and so it probably also applies to ftp so I’d say same thing should be with Unity so you probably need to set it up. But you could try and run run /usr/bin/ftp from a system process.
It seems that socket communication, when the target platform is webplayer, is restricted by the webplayer sandbox when using sockets. The solution ended up being changing to the standalone platform before uploading via ftp,
Thanks for the info, I wasn’t aware of that myself. ![]()