Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

FTP Upload example

Discussion in 'Unity Build Automation' started by taxfromdk, Aug 14, 2015.

  1. taxfromdk

    taxfromdk

    Joined:
    Oct 30, 2009
    Posts:
    95
  2. taxfromdk

    taxfromdk

    Joined:
    Oct 30, 2009
    Posts:
    95
    I suspect it is related to the webplayer sandbox?

    It was my impression that FTP has nothing to do with crossite.xml files.

    Jesper
     
  3. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    743
    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.
     
  4. taxfromdk

    taxfromdk

    Joined:
    Oct 30, 2009
    Posts:
    95
    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,
     
    David-Berger likes this.
  5. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    743
    Thanks for the info, I wasn't aware of that myself. :)