New issue
Advanced search Search tips

Issue 638782 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Feature



Sign in to add a comment

Second parameter to fileSystem.chooseEntry callback not documented

Project Member Reported by srsudar@google.com, Aug 17 2016

Issue description

UserAgent: 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
 
Components: Infra>Documentation
Status: Untriaged (was: Unconfirmed)
Project Member

Comment 2 by sheriffbot@chromium.org, Aug 18 2016

Labels: Hotlist-Google
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."
Components: -Infra>Documentation
Status: WontFix (was: Untriaged)
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