Closed Bug 639773 Opened 14 years ago Closed 14 years ago

progressEvent.loaded not loading huge file

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: unnivm, Unassigned)

Details

Attachments

(7 files)

User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7 Build Identifier: FireFox 4.0b7 I am using HTML 5 for file upload application using FF 4.0b7.But progressEvent loaded method is not loading file size greater than 50 MB.It is loading maximum upto 50MB.Please confirm. Thanks in advance. Reproducible: Always Steps to Reproduce: 1.Use file element 2.load a file that is greater than 50 MB using this element 3. Expected Results: It should load the file of any size.
Priority: -- → P1
Please don't mess with the priority field. This has noting to do with JS... I also can't reproduce with a current build. Please test a current nightly, not the ancient beta 7? If you still see the problem there, can you attach the code you're using when the problem appears?
Assignee: general → nobody
Component: JavaScript Engine → DOM
Priority: P1 → --
QA Contact: general → general
I am using progress element to track the progress of a file upload.I am using Firefox 4.0 b7 version for doing this upload activity.Till 50 MB , it will upload correctly.But after 50 MB, it will not upload complete bytes, even though the total file size printing is correct.I shall try using latest version of the Firefox nightly build and shall update the same.Thaks.
This time, as you said I changed to Minefield version(It is not a FireFox !!!) and tested the same. There are some improvements.This time it loaded some more bigger file.I have attached the image.
This screenshot for the file could not upload completely.
Attached file html file
Please let me know if you need any other info.Thanks
Could you please either point to or attach the full page needed to reproduce the problem? The attached code clearly relies on some other library to actually do the work, for example.
This implementation is using jWebSocket(http://jwebsocket.org/) API.You can download the server and client from their site.How to setup.Please follow these steps: 1.Download and install tomcat6.0+ version --Unzip the tomcat zip to a folder.(e.g, apache-tomcat-6.0.29 folder name) 2.Install Java 1.6 (http://www.oracle.com/technetwork/java/javase/downloads/index.html) -- Just install(Follow the default instructions) 3.Unzip the websocket client zip file and copy the entire folder to webapp folder of your tomcat installation. 4.Unzip the jWebSocket Server and goto bin folder and start it(jWebSocketServer.bat) 5.Now move the FileUpload.htm to demos\chat folder of your tomcat under the websocket client folder. 6.Access the URL like this: http://localhost:8080/jWebSocketClient-0.10/demos/chat/FileUpload.htm 7.Once screen loaded, you can enter some values and press Login. 8.Then select a bigger file and you can see this behaviour. Please let me know if you need further assistance on this.Thanks
Sorry to forget to add one more information here. Please move the .js file to res/js folder.
A bit modified testcase coming. I need to verify this from the spec, but if FileReader works like XMLHttpRequest, this is invalid.
Attached file updated testcase
Because the event called "progress" must not fire more often than every 50ms, the last progress event may not fire when 100% of a file is loaded. For that information you should use "load" event.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Actually, there is a spec problem here.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INVALID → ---
Er, wrong bug. The spec issue is not with FileReader but with XHR.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → INVALID
I have corrected the code as per your input.But I have some clarifications.Normally when we say onloadend, it is expected that the file loading operation has been over.It fires onloadend event. .But that is not really happening.When I use load and onloadend together , onloadend is not firing.I think onload is ovveriding the onloadend method.And if I use onloadend alone, it is not loading the entire size.This is bit confusing.Ideally, onloadend method should fire regardless of onload invoked or not and should load remaining bytes.Thanks for your co-operation.
In your testcase you set onploadend, not onloadend If there is a problem with loadend event, please file a new bug about that with a minimal testcase. CC me to the bug.
sorry it was a typo.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: