Search Unity

Making a custom UploadHandler for UnityWebRequest?

Discussion in 'Scripting' started by Ciaran, Oct 18, 2016.

  1. Ciaran

    Ciaran

    Joined:
    Oct 18, 2016
    Posts:
    3
    I'm sending a lot of data through a PUT request, which currently involves reading it all into a huge byte[] array and then passing it to UnityWebRequest. It seems I should be able to provide the data in chunks instead but it's unclear in the documentation how I would go about this. Is this possible?
     
  2. me_unity958

    me_unity958

    Joined:
    Sep 10, 2017
    Posts:
    1
    Did you ever have any luck figuring this out?
     
  3. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    Custom upload handler currently is not supported. We are going to add an UploadHandlerFile which reads data from file and sends it as request body, but that will be in the future release. We are also investigating the need for custom upload script.