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

Uploading files from Editor to a server fails / drops connection

Discussion in 'Editor & General Support' started by MentalFish, Dec 19, 2018.

  1. MentalFish

    MentalFish

    Joined:
    Nov 2, 2005
    Posts:
    282
    We have made a process that creates a new build, zips the executable and then sends it to a server. Sending to the server works, but only if the file is small enough so the connection does not time out. It always drops the connection after 5 seconds, regardless of file size. The server (Apache/Php) has been set to accept large files, and it does so when sending files while in play mode, but running the same code as an Editor-script and it fails.

    We have tried the WWW class, UnityWebRequest (with timeout set to 60 seconds), and using the new Unity.EditorCoroutines package. We have also tried to go directly to Azure via Microsoft.WindowsAzure.Storage, but the connection always drops within 5 seconds, no error or info given.

    Is there some sort of bug or hard coded connection limitation while using UnityWebRequest or similar solutions (Azure storage) inside EditorWindow scripts?