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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Contributor
Posts: 4
Registered: ‎10-12-2012
My Device: BB10 Dev Alpha
My Carrier: Movistar

Send files to remote server

I am still need help on this...


Image files in an array

["file:///accounts/1000/shared/photos/Simple1.jpg ",

"file:///accounts/1000/shared/photos/Simple2.jpg ",

"file:///accounts/1000/shared/photos/Simple3.jpg ",

"file:///accounts/1000/shared/photos/Simple4.jpg "]


for (var i=0;i < array.length; i++) { 

name = array[i];



I try to use blackberry.io.filetransfer.upload on bb10 alpha but dont work for me... always fire uploadError callback with number 1. i tryed a lot of differents paths. 


var options = {
fileKey : "userfile",
fileName : name, //only the name of img
mimeType : "image/jpg",
chunkedMode : true,
chunkSize : 1024


blackberry.io.sandbox = false;
blackberry.io.filetransfer.upload(img, "http://www.gipegasus.com.ar/simple/uploadimg.php", uploadSuccess, uploadError, options);


Error code: 1 
Source: file:///accounts/1000/shared/photos/Simple.jpg 
Target: http://www.gipegasus.com.ar/simple/uploadimg.php
HTTP Status: undefined


What is wrong?

Any hint?, thanks

Posts: 166
Registered: ‎02-15-2012
My Device: Playbook 16GB
My Carrier: Bags are useful

Re: Send files to remote server

Have you declared a new feature in your config.xml file?


<feature id="blackberry.io.filetransfer" />

 Have a look at his page and see if it helps you further:

File Transfer

If any post helps you please click the Like Button below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!

New Contributor
Posts: 4
Registered: ‎10-12-2012
My Device: BB10 Dev Alpha
My Carrier: Movistar

Re: Send files to remote server

[ Edited ]

TheFlowFX, thanks for reply, but will not that easy answer... I already learn the API and copy the example exactly from there but fail...

Yes I already declare 

<feature id="blackberry.io.filetransfer" />


¿Do You have a bb10 Alpha Device?

¿Do You test the example?

¿Do You already use the API in a succesful way?


Please, try it yourself and help me to figure out why are failing! Thanks in advance


PS: remember that need to take files names from an array, not to write a fixed path or take it from an input form.