ios - HTML file upload "Could not create a sandbox extension" using WKWebView -



i'm running strange issue while using wkwebview in ios 8 app. html page shown inside view allows file upload. when images selected, works fine - files returned html/javascript , can upload them. however, if select video (.mov) during file selection, appears wkwebview crashes.
when happens, following spit out in xcode - "could not create sandbox extension '/var/mobile/media/dcim/100apple/img_0745.mov'"

appreciated! seems strange image files can handed on fine, video breaks.

there bug in safari crashes browser when try upload videos <input type="file"> "multiple" attribute set. fixed in latest ios 8.4 release, still affects wkwebview.

source: https://github.com/fineuploader/fine-uploader/issues/990


i've been studying @ least 3 hours , came these 3 solutions:

1.) capture/upload single video only

<input type="file" accept="video/*" capture="camcoder"> 

2.) capture/upload single image or video

<input type="file" accept="image/*,video/*" capture="camera,camcoder"> 

3.) select multiple images straight gallery

<input type="file" accept="image/*" multiple> 


first 2 inputs open system popup asking if want capture file, or select gallery. third 1 go straight gallery , filter images, can't select videos crash app.

if has different solution, i'm ears , willing buy him beer :d


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -