Second parameter to fileSystem.chooseEntry callback not documented |
|||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36 Steps to reproduce the problem: fileSystem.chooseEntry takes a callback with two parameters: https://developer.chrome.com/apps/fileSystem#method-chooseEntry It is not clear what the second parameter fileEntries does, and it is not used in any of the examples I could find. The first parameter appears to be the chosen Entry, but the second parameter claims to return an array of FileEntry objects that are described as the "Properties of each object". This doesn't make sense to me. What is the expected behavior? What went wrong? I would expect this parameter to have more discussion in the documentation or used in an example. Did this work before? N/A Chrome version: 52.0.2743.82 Channel: n/a OS Version: 52.0.2743.82 (64-bit) Flash Version: Shockwave Flash 22.0 r0
,
Aug 18 2016
,
Aug 22 2016
It is not a second parameter, the callback will be passed either an entry or an array of file entries. Check the documentation for acceptsMultiple: "Whether to accept multiple files. This is only supported for openFile and openWritableFile. The callback to chooseEntry will be called with a list of entries if this is set to true. Otherwise it will be called with a single Entry."
,
Sep 2 2016
Not Infra Docs, this is a developer site bug. Please file a bug by clicking "Report a content bug" at the bottom of the page. |
|||
►
Sign in to add a comment |
|||
Comment 1 by brajkumar@chromium.org
, Aug 18 2016Status: Untriaged (was: Unconfirmed)