RFE: A mechanism to identify reason for failure of FileReader.readAsText(HTML_FORM_INPUT.files[0]) after file got modified.

NEW
Unassigned

Status

()

--
enhancement
3 years ago
3 years ago

People

(Reporter: BijuMailList, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox48 affected)

Details

(Reporter)

Description

3 years ago
See Bug 1260606 comment #28
> Likewise, I'd be fine with us firing a special error from FileReader if the
> file changed on disk. But I don't think we currently do.

If a file was modified after it was selected using INPUT[type=file] from Firefox 45 build FileReader.readAsText(HTML_FORM_INPUT.files[0]) fails.
But there is no way in the error handler to identify the reason for the failure.

Please provide a mechanism for JavaScript developer to identify failure reason so that s/he can take appropriate action.
(Reporter)

Updated

3 years ago
See Also: → bug 1264371
(Reporter)

Updated

3 years ago
See Also: → bug 1265603
(Reporter)

Comment 1

3 years ago
I want add one more situation, there will also case where file was deleted from the disk or there is network fault (if file was network, or on removable disk) after user selected it with FORM_INPUT file control.
You need to log in before you can comment on or make changes to this bug.