Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Getting exceptions when uploading a file from blackberry

Can you post up your OS version number and device model you are trying it on where it doesn't work?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Contributor
amitgaur06
Posts: 20
Registered: ‎09-06-2011
My Device: torch

Re: Getting exceptions when uploading a file from blackberry

Hi Tim,
Please find the details below

BlackBerry® 9800
smartphone (3G, Wi-Fi)
6.0 Bundle 695 (v6.0.0.246, Platform 6.4.0.105)
3G Bands 1,2,5,6
Cryptographic Kernel v3.8.6.5
Branding Version: 1.0.99.555A
Micro Edition Configuration: CLDC-1.1
Micro Edition Profile: MIDP-2.1
Micro Edition JTWI Version: 1.0
Micro Edition Media Version: 1.1
Micro Edition PIM Version: 1.0
Micro Edition File Version: 1.0
Micro Edition Bluetooth Version: 1.1
Micro Edition Location Version: 1.0.1
Micro Edition Security and Trust Services (APDU) Version: 1.0
WLAN Version: 4.2.0.38
www.blackberry.com
Copyright © 1997-2010
Research In Motion Limited.
All rights reserved.

Portions of the browser are copyright 4thpass.

The RIM and BlackBerry families of related marks, images and symbols are the exclusive properties and trademarks of Research In Motion Limited. RIM, Research In Motion, and BlackBerry are registered with the U.S. Patent and Trademark Office and may be pending or registered in other countries.
Please use plain text.
Contributor
amitgaur06
Posts: 20
Registered: ‎09-06-2011
My Device: torch

Re: Getting exceptions when uploading a file from blackberry

Hi Tim, I am really stuck and need urgent help as this is stopping the delivery of our application.

I am available for providing anything you need from my side.

Thanks again 

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Getting exceptions when uploading a file from blackberry

I'm loading up a 9800 with 246 and I'll give it a look

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Contributor
amitgaur06
Posts: 20
Registered: ‎09-06-2011
My Device: torch

Re: Getting exceptions when uploading a file from blackberry

Thanks Tim
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Getting exceptions when uploading a file from blackberry

I just tried it out on the exact same device and build number that you have specified and it is working for me.  Did you sign the application before loading it on the device?

 

Here is my config.xml and index.html for my app

 

<html>
  <head>
    <meta name="viewport" id="viewport" content="height=device-height,width=device-width,user-scalable=no" />
    <script type="text/javascript" >
      function doClick() {
			webworks.ui.filePicker.open(doCallback);
      }
	  
	  function doCallback(file) {
		alert('You selected file: ' + file);
	  }
    </script>
  </head>
  <body >
    <h1>Hello World</h1>
	<button onclick="doClick()">Click Me</button>
  </body>
</html>

 

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0" rim:header="RIM-Widget:rim/widget">
  <name>File Test</name>
  <author>Me</author>
  <content src="index.html" />
  <feature id="webworks.ui.filePicker" />
</widget>

 

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Contributor
amitgaur06
Posts: 20
Registered: ‎09-06-2011
My Device: torch

Re: Getting exceptions when uploading a file from blackberry

Hi Tim,
Thanks, I have code signed the application as without it one can't deploy it on device.
I am now writing a sample appand will try to deploy it on my device and let you know the results very soon.
Thanks again :smileyhappy:
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Getting exceptions when uploading a file from blackberry

Oh.. and it looks like Jerome uploaded a File Upload/Download extension to github if you're interested in checking it out :smileyhappy:

 

https://github.com/blackberry/WebWorks-Community-APIs/pull/18

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Contributor
amitgaur06
Posts: 20
Registered: ‎09-06-2011
My Device: torch

Re: Getting exceptions when uploading a file from blackberry

Hi Tim, I have tried the config.xml and index.html you sent above as it is but again encountered the same issue.

I don't know what is happening but I only have this hardware to test on.

The FileUploader of the community is a very nice substitute of phone-gap and I really thank you for sharing that.

Please let me know what information you want from my side. I am willing to send my device through any kind of shipping :smileysad:  to you if this issue is specifically coming on this.

My client is really upset and wants this issue to close ASAP.

Please help me......

 

Please use plain text.
Contributor
amitgaur06
Posts: 20
Registered: ‎09-06-2011
My Device: torch

Re: Getting exceptions when uploading a file from blackberry

And this is really frustrating that it is working perfectly fine on simulator :smileysad:

Please use plain text.