Search Unity

The filetype you are attempting to upload is not allowed

Discussion in 'iOS and tvOS' started by Vision222114, Feb 13, 2019.

  1. Vision222114

    Vision222114

    Joined:
    Oct 14, 2014
    Posts:
    17
    This is my code

    var videoBytes = System.IO.File.ReadAllBytes(filePath+"/" + VideoFileName);
    WWWForm www = new WWWForm();
    www.AddBinaryData("video", videoBytes, VideoName + ".mp4","video/mp4");
    GameController.Post("/uploadVideo",www);

    It is work on unity editor(mac os).

    But it not work on iphone device.

    The error message is "The filetype you are attempting to upload is not allowed".
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446