1 Reply Latest reply on Sep 22, 2017 2:23 AM by christianb79310854

    IOS iframe won't let user select video file from library

    jameso72596846

      I have built an app for android and ios, that contains an iframe which users can use to upload files. They can click on a <input type="file"> and select an option, take photo or video or choose from photo library, everything seemed to work fine and the file was uploaded.

       

      I have recently updated my test ios device to ios version 10.3.3 and now when the user selects a video from their photo library I get the following error:

       

      [Error] Blocked a frame with origin "http://example.com" from accessing a frame with origin "file://".  The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "file". Protocols must match.

       

      This doesn't happen when I select a photo from the library or when I choose to "take photo or video" and it stills works perfectly fine on Android.

       

      The plugins I am using are:

      • cordova-plugin-camera (2.4.1)
      • cordova-plugin-file (4.3.3)
      • cordova-plugin-file-transfer (1.6.3)
      • cordova-plugin-inappbrowser (1.7.1)
      • cordova-plugin-media-capture (1.4.3)
      • cordova-plugin-statusbar (2.1.3)
      • cordova-plugin-whitelist (1.3.2)

       

      Any help is appreciated

      Thank you