Is there a way to access or retrieve the file path? - There is no way to access the local file path of a selected file with openFiles().
Austin On Wed, Dec 10, 2008 at 1:31 PM, dviner <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm new to Gears, and I'd like to build a Gear that enables users to > select one or more local image files, enter in some metadata about > them, and upload them to a specified website whenever they are > connected to the network. > > I know that there is a Desktop module has an openFiles() method, > documented at http://code.google.com/apis/gears/api_desktop.html#Desktop > which creates a dialog window allowing the user to select one or more > files. However, it appears that the callback function will only > receive the file name (not the path) as documented at > http://code.google.com/apis/gears/api_desktop.html#File. > > Is there a way to access or retrieve the file path? > > I believe that I could circumvent this problem by using the File.blob > property to store the full contents of the image file into a Gears > DB. But, this seems like a poor approach for a few reasons. First, > it requires duplicate storage of the entire file which is actually > unnecessary. Second, it limits the file size to 2GB (or more exactly, > to 2,147,483,647 bytes). Both of these are hard to overcome for > simple photo uploading. (And video uploading is even worse, since > many files are larger than 2GB). > > > Thanks > Dave >
