Open
Bug 756503
Opened 13 years ago
Updated 3 years ago
FileAPI doesn't update the files size when user makes file changes
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
NEW
People
(Reporter: trevor.m.senior, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19
Steps to reproduce:
I chose a file using the HTML5 FileAPI.
See this question I posted here:
http://stackoverflow.com/questions/10646601/fileapi-doesnt-update-the-files-size-when-user-makes-file-changes-non-webkit-b
And The relating JSFiddle: http://jsfiddle.net/e2UfM/12/
JSFiddle Usage:
1. Load in a text file from your local machine.
2. Hit "load file".
3. Hit "display file size" - note the size.
4. modify & save the text file on your local machine.
5. Hit "display file size" again. Note how in webkit browsers (Chrome) the file size changes, but in Firefox it didn't update the file size
Actual results:
After choosing the file, I displayed its file size. I then modified the file on the local machine, but when reading the file again the file size remains the same.
Expected results:
Webkit browsers (Google Chrome) update the size of a file when users make changes to files locally, whereas this version of Firefox did not! This should be fixed to ensure that the file is the correct size on the client side, even if the user makes changes to their file.
Updated•13 years ago
|
Component: Untriaged → File Handling
QA Contact: untriaged → file.handling
Reporter | ||
Updated•13 years ago
|
OS: Windows 7 → All
Updated•13 years ago
|
Component: File Handling → DOM
Product: Firefox → Core
Comment 1•13 years ago
|
||
Oh, I'd love to see (or even work on a fix for) this. As I understand it, this would be done by asking the operating system to notify when a file changes. Mozilla's nsLocalFile*.cpp code has no code to support this as far as I know.
Comment 2•13 years ago
|
||
(In reply to Alex Vincent [:WeirdAl] from comment #1)
> Mozilla's nsLocalFile*.cpp code has no code to support this as far
> as I know.
Bug 759416 is adding that.
Comment 3•7 years ago
|
||
Still happens in Firefox 59.0.2 and Nightly (61).
Can also confirm that Chrome updates the file size when the underlying file is changed.
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•