cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Woghiren <m...@chromium.org>
Subject Native URL functionality for files
Date Fri, 11 Jan 2013 18:21:01 GMT
Hi everyone,

I'm working on implementing chrome apps file system functionality using
Cordova.  I'm focusing on iOS first.

I'm planning on using AssetsLibrary to prevent having to (1) send actual
file data to and from JS unnecessarily and (2) save temporary copies of
files.

In order to use asset library URLs (and the equivalents on other
platforms), I'd like to add a third Camera DestinationType: NATIVE_URL.  In
iOS, Camera would send back the assets-library URL, which can then be
stored in a FileEntry.

This type of URL would then be handled wherever necessary.  For instance,
uploading an image to a server using FileTransfer would be able do it
directly from the photo library, since it'd be given the assets-library
URL.  File would have a bunch of changes to handle this as well.

Please let me know if you have any comments, concerns, or things to
consider about add this functionality.

Thanks!
-Max

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message