[ 
https://issues.apache.org/jira/browse/CB-8032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14243450#comment-14243450
 ] 

Shazron Abdullah edited comment on CB-8032 at 12/12/14 1:03 AM:
----------------------------------------------------------------

Here's my research into the 6 plugins needing changes:

h4. 1. cordova-plugin-camera
*DONE* - in PR

h4. 2. cordova-plugin-file
*DONE* - in PR

h4. 3. cordova-plugin-file-transfer 
*NO CHANGE* - connection:didFinishLoading:, handled by CDVFile

h4. 4. cordova-plugin-media 
*NO CHANGE* - file urls are used internally only.

h4. 5. cordova-plugin-media-capture
*NO CHANGE* -  full paths are sent back through the API, not urls. Users use 
the File API to get native urls?

h4. 6. cordova-plugin-contacts 
*NO CHANGE* - the only paths returned are from extractPhotos, and even though 
the type is 'url' it's actually a file path. Users use the File API to get 
native urls?



was (Author: shazron):
Here's my research into the 6 plugins needing changes:

h4. 1. cordova-plugin-camera
*PENDING* - file URI returned needs to be transformed

h4. 2. cordova-plugin-file
*DONE* - in PR

h4. 3. cordova-plugin-file-transfer 
*NO CHANGE* - connection:didFinishLoading:, handled by CDVFile

h4. 4. cordova-plugin-media 
*NO CHANGE* - file urls are used internally only.

h4. 5. cordova-plugin-media-capture
*NO CHANGE* -  full paths are sent back through the API, not urls. Users use 
the File API to get native urls?

h4. 6. cordova-plugin-contacts 
*NO CHANGE* - the only paths returned are from extractPhotos, and even though 
the type is 'url' it's actually a file path. Users use the File API to get 
native urls?


> Add nativeURL external method support for 
> CDVFileSystem->makeEntryForPath:isDirectory:
> --------------------------------------------------------------------------------------
>
>                 Key: CB-8032
>                 URL: https://issues.apache.org/jira/browse/CB-8032
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Camera, Plugin Contacts, Plugin File, Plugin File 
> Transfer, Plugin Media, Plugin Media Capture
>         Environment: iOS
>            Reporter: Shazron Abdullah
>
> Right now in CDVFileSystem->makeEntryForPath:isDirectory:, in the 
> NSDictionary that is returned, for the key "nativeURL" the format is fixed 
> (file:// protocol for a local filesystem reference, and assets-library:/ for 
> a assets library filesystem reference.)
> When calculating the nativeURL, allow this to be specified externally, check 
> for a selector "nativeURL" and call that if available.
> This is for example declared in a Category in this plugin: 
> https://github.com/apache/cordova-plugins/blob/5d8ef21dcbde1f99d60e1b52ae3a3800e4c185d9/local-webserver/src/ios/CDVLocalFileSystem%2BNativeURL.m
> ... which when linked will have the selector available for the File plugin to 
> call.
> This code is part of the local webserver plugin - and it needs the File 
> references to be proxied through a local webserver.
> For example if the FileEntry is to:
>     
>     file://my/package/folder/Documents/foo.txt
> .. the nativeURL would be, with this new category method, and the local 
> webserver listening to http://localhost:8080:
>     http://localhost:8080/local-filesystem/my/package/folder/Documents/foo.txt



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to