- Home /
loading error unsupported URL IOS Xcode build
Hello Developer Need Help
I'm trying to upload Video file local to my server but when i run on my IOS device i got below error.
Script:
IEnumerator uploadvideo1(string localpath,string url,string filename)
{
StartCoroutine (showTextForVideo (localpath));
yield return new WaitForSeconds (3);
WWW localfile = new WWW ("file://"+localpath);
yield return localfile;
if (localfile.error == null) {
byte[] videobytes = localfile.bytes;
WWWForm postForm = new WWWForm ();
StartCoroutine (showTextForVideo ("Loading done="+videobytes.Length));
postForm.AddField ("fileToUpload", 0.ToString ());
postForm.AddBinaryData ("fileToUpload", videobytes,filename,"video/mp4");
uplodingText.gameObject.SetActive (true);
uplodingText.text = "uploading video.....";
using (UnityWebRequest www = UnityWebRequest.Put(url, videobytes))
{
yield return www.Send();
if (www.isError)
{
Debug.Log ("upload error "+www.error);
uplodingText.gameObject.SetActive (false);
StartCoroutine (showTextForVideo ("upload error "+www.error));
}
else
{
Debug.Log ("video upload Done"+filename);
uplodingText.gameObject.SetActive (false);
StartCoroutine (showTextForVideo ("upload video Done"));
}
}
}
else {
Debug.Log ("loading error "+localfile.error);
StartCoroutine (showTextForVideo ("loading error "+localfile.error));
}
}
Error 2017-04-20 18:07:43.041 everyplayiosdemo[517:105218] [#306] +[Everyplay initWithDelegate:] initializing 2017-04-20 18:07:43.311 everyplayiosdemo[517:105218] Everyplay SDK build: 2140 2017-04-20 18:07:43.608 everyplayiosdemo[517:105218] -> registered mono modules 0xeec410 -> applicationDidFinishLaunching() -> applicationDidBecomeActive()
Renderer: PowerVR SGX 543
Vendor: Imagination Technologies
Version: OpenGL ES 2.0 IMGSGX543-124.1
GLES: 2
GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_comp ression_pvrtc
OPENGL LOG: Creating OpenGL ES 2.0 graphics device ; Context level ; Context handle 349633568
Initialize engine version: 5.4.2f1 (94e3a60ee258)
UnloadTime: 12.676750 ms
Setting up 1 worker threads for Enlighten.
Thread -> id: 40513000 -> priority: 1
2017-04-20 18:08:21.736 everyplayiosdemo[517:105218] You are using download over http. Currently unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
loading error unsupported URL
c__Iterator4:MoveNext()
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
2017-04-20 18:10:33.463 everyplayiosdemo[517:105218] You are using download over http. Currently unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
loading error unsupported URL
c__Iterator4:MoveNext()
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
Thanks
Your answer
![](https://koobas.hobune.stream/wayback/20220612120535im_/https://answers.unity.com/themes/thub/images/avi.jpg)