New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 10 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Jun 2011
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature

Restricted
  • Only users with Commit permission may comment.



Sign in to add a comment

Feature Request: Implement FileReaderSync

Reported by shang.xi...@gmail.com, Jul 2 2010

Issue description


Chrome Version       : 6.0.447.0 (Official Build 50594) dev
URLs (if applicable) : http://rapilabs.com/test_sync.html
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5: FAIL
    Firefox 4: FAIL
IE 7:
IE 8:

What steps will reproduce the problem?
1. Navigate to http://rapilabs.com/test_sync.html
2. Select a file with the provided file input

What is the expected result?
An alert dialog displaying the contents of the selected file

What happens instead?
Uncaught ReferenceError: FileReaderSync is not defined

Please provide any additional information below. Attach a screenshot if possible.
FileReaderSync is the synchronous counterpart of FileReader as defined in the HTML5 specification: http://www.w3.org/TR/FileAPI/#FileReaderSync.  Reading files synchronously would typically be done in a web worker so as not to freeze the application.  This is useful with GWT applications to create a java.io.Reader implementation that reads blobs using the File API.  This means that you can plug a blob reader into your favourite library that requires a Reader to run, eg: opencsv.  This is currently only possible using Gears' Blob.getBytes() which is also synchronous.  


 
This is part of Webkit.  Issue raised: https://bugs.webkit.org/show_bug.cgi?id=41567
Labels: -Area-Undefined Area-WebKit

Comment 3 by karen@chromium.org, Sep 23 2010

Labels: -Type-Bug Type-Feature Mstone-X
It's very useful for uploading multiple files by XmlHttpRequest

Comment 5 by tczol...@gmail.com, Jan 26 2011

Nothing since June? :(
why FileReaderSync was implemented only in web workers?
any progress?

Comment 8 by levin@chromium.org, Jun 11 2011

Cc: ericu@chromium.org adamk@chromium.org kinuko@chromium.org

Comment 9 by levin@chromium.org, Jun 14 2011

Cc: jianli@chromium.org
Labels: Feature-Workers
Status: Fixed
FileReaderSync has already been implemented. Please note that it could only be constructed from the web workers per the File API spec.
Project Member

Comment 11 by bugdroid1@chromium.org, Oct 13 2012

Labels: Restrict-AddIssueComment-Commit
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Project Member

Comment 12 by bugdroid1@chromium.org, Mar 11 2013

Labels: -Area-WebKit Cr-Content
Project Member

Comment 13 by bugdroid1@chromium.org, Apr 6 2013

Labels: -Cr-Content Cr-Blink

Sign in to add a comment