[AC-2853] Progress on XHR file upload return values larger than 0-1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-10-20T11:23:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | Jakub Syrek |
Assignee | Matthew Apperson |
Created | 2011-09-19T01:35:00.000+0000 |
Updated | 2016-03-08T07:47:47.000+0000 |
Description
Progress don't work on XHR file upload. Length of image is not added to totalLength and progress value is much more higer than 1
W/InputManagerService( 53): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@43b95478 (uid=10004 pid=290)
W/TiBaseFile( 270): (kroll$7: app://examples/xhr_fileupload.js) [197,77522] Method is not supported org.appcelerator.titanium.io.TitaniumBlob : size
W/TiBaseFile( 270): (kroll$7: app://examples/xhr_fileupload.js) [21,77543] Method is not supported org.appcelerator.titanium.io.TitaniumBlob : size
I/ActivityManager( 53): Displayed activity com.appcelerator.titaniuma/org.appcelerator.titanium.TiActivity: 7140 ms (total 7140 ms)
D/TiHttpClient( 270): (TiHttpClient-1) [289,77832] adding part message, part type: , len: 12
D/TiHttpClient( 270): (TiHttpClient-1) [11,77843] adding part password, part type: , len: 11
D/TiHttpClient( 270): (TiHttpClient-1) [3,77846] adding part media, part type: image/jpeg, len: 18474
D/dalvikvm( 270): GC freed 11488 objects / 962000 bytes in 127ms
D/TiHttpClient( 270): (TiHttpClient-1) [134,77980] adding part username, part type: , len: 14
D/TiHttpClient( 270): (TiHttpClient-1) [3,77983] totalLength=37.0
How to reproduce:
run KitchenSink (XHR -> file upload)
Could you please add the relevant testcode from the KitchenSink to the ticket description? Once you do this I can go ahead and accept the ticket. Best regards, Matt
The xhr_fileupload.js script is not enabled for Android (see TIMOB-6872) and hence this ticket required a test case. I am closing now due to inactivity.
Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) to ensure that we can escalate it quickly. Read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report) if you have not read it before, and always start a ticket using the [JIRA Ticket Template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template). Thanks in advance