Tag: stagewebviewbridge

StageWebViewDisk中断iPad上的file upload(iOS?)

我正在使用Adobe Air for iPad / iPhone应用程序。 我也使用StageWebViewBridge ( https://github.com/paleozogt/StageWebViewBridge )作为主要的网页内容显示容器。 我的应用程序适用于桌面版本,但StageWebViewBridge的StageWebViewDisk打破了HTMLfile uploadfunction: <input id="user_avatar" name="user[avatar]" style="width:100%" type="file" /> 也就是说,无论何时从真实的iPad设备上浏览并selectTake Photo or Video或Choose Existing的文件,上述user_avatarinput都不会被更新。 我相信有些path被StageWebViewDisk.initialize(stage)弄乱了。 您可以在这里findStageWebViewDisk的完整源代码: https : //github.com/paleozogt/StageWebViewBridge/blob/master/StageWebViewBridge/src/es/xperiments/media/StageWebViewDisk.as 而下面的代码片段是非常可疑的: case isIPHONE : /* new iOS 5.0 Data Storage Guidelines * https://developer.apple.com/icloud/documentation/data-storage/ * https://developer.apple.com/library/ios/#qa/qa1719/_index.html */ _appCacheFile = new File(File.applicationDirectory.nativePath +"/\.\./Library/Caches"); _applicationCacheDirectory = new File( _appCacheFile.nativePath ).url; […]