-
Notifications
You must be signed in to change notification settings - Fork 205
File Uploader not working with headers #119
Comments
If you remove the header setting, the error will go away, I also have a problem with this extension, it timeouts every time, it has never worked for me (on both OS 6 and 7.1) simulate and non-simulator, I did exactly as in the example. HELP Local connection timeout after ~ 30000 |
What transport options have you set in config.xml? What headers are you using? Perhaps a sample would help us debug it easier. |
I got and error when I tried to set header content-type to multipart/form-data so I currently set no headers. I get a timeout error right after net.rim.tcp in my event log of device. I currently didn't set any header values, do you think I should manually set rim:connection though its consequential, but I'm getting desperate..iframes have failed the purpose in webworks widget |
Name: IOException |
In an attempt to combat the problem I used rim:connection, which is which still didn't help. I'm using a the filePicker extension to select the file, everything works For the headers I tried setting "content-type":"multipart/form-data", i got On my device i'm getting the Connection closed exception right after **all these errors were spotted in the event log of the simulator/device |
I found the problem/solution, the extension only works with TCP connections (via Wifi or APN). Doesn't run with BIS-B as everyone prefers. Any suggestion as to how to make it work with BIS-B or WAP2 or WPTCP(TCP for BIBS) like xhr does in webworks widgets. |
I too got the same problem while transferring over BIS-B. If you found any solution for this let me know. Thanks for your reply. |
@chukxx have you solved this problem, my app seems to be doing same. It worked without Wifi before, now it doesn't work anymore until wifi is turned on. |
the file uploader doesn't work with BIS, so if you aren't connected to wifi and you don't subscribe to a data plan, most service providers charge at a flat rate. I stated this in the app i developed with it, as also made another version of the app that uses the method stated below, and runs smooth on OS 5 devices: The only way i solved this was to use HTMLfile upload DOM element, in a HTMLform, which uploads to an iframe (the HTMLform's target). And the iframe calls on "onload" event when the upload is done. However using iframe in webworks application gives rise to more bugs as the window changes focus to the iframe, thereby making all your app functions as well as window.blackberry === undefined. Would be perfect if you could get the focus back to the original window (parent.window). So when the upload it done and the "onload" is called you try transfer focus back to the original window, and remove the iframe from the DOM stack |
Shit, can you give a mini example of how you did this? This project of mine is enterprise!! -----Original Message----- the file uploader doesn't work with BIS, so if you aren't connected to wifi and you don't subscribe to a data plan, most service providers charge at a flat rate. I stated this in the app i developed with it, as also made another version of the app that uses the method stated below, and runs smooth on OS 5 devices: The only way i solved this was to use HTMLfile upload DOM element, in a HTMLform, which uploads to an iframe (the HTMLform's target). And the iframe calls on "onload" event when the upload is done. However using iframe in webworks application gives rise to more bugs as the window changes focus to the iframe, thereby making all your app functions as well as window.blackberry === undefined. Would be perfect if you could get the focus back to the original window (parent.window). So when the upload it done and the "onload" is called you try transfer focus back to the original window. Reply to this email directly or view it on GitHub: |
Hi,
I downloaded FileUploader extension plugin and used it in my code, when i tried to setting header value mentioned in the example code. When i try to upload the file am getting error, in the device log i was able to see my header name and value in the webworks.io.FileUploader error description.
Can you let me know how to use headers in the FileUploader extension.
The text was updated successfully, but these errors were encountered: