11-20-2009 09:12 AM
You can do this through a multipart/form-data upload. There should be lots of documents and examples on the web for this functionality.
Be sure to white list the domain you will be uploading to in the config.xml file in the <access> element.
<form action="addImage.jsp" method="post" enctype="multipart/form-data"> <input type=”file” name=”image_upload”> <input type=”submit value=”Upload”> </form>
11-21-2009 09:29 AM
For other examples Google is your friend
11-21-2009 01:48 PM
To do what you are looking for, it does not require any specific widget or BlackBerry API knowledge. Uploading a file from a web page is standard HTML functionality that should work either in a widget or the normal BlackBerry Browser.
Do you have a specific question on the widget or BlackBerry API? I just want to make sure I am addressing your question.
11-21-2009 07:44 PM
well .. i wont build a widget similar a facebook application for upload image.. but i wont upload image by my photocam on my server (upload is protect with a passwd) tnks for all
11-23-2009 08:36 AM
Instead of using the form submit, you could always use a method such as AJAX..
Here is an example of using AJAX to upload a file:
You can also set your username and password on your AJAX call for your server's authentication.
02-22-2011 01:16 AM
02-22-2011 08:55 AM
index.php is on the server. You are not able to package and run php files on a BlackBerry. In a WebWorks application you can allow cross domain/origin AJAX calls by white listing the domain/origin in the config.xml file in the <access> elements.