I'm porting a iPhone app to the WRT platform, for N97s and 5800s. This widget needs to post text and media files to a web service.

So far, I'm using the S60 Platform Services 2.0 Javascript API for integration with the camera. This works ok, although it has some caveats: 5MP images seem too big for display but as there is no way to resize the images on the fly, I can live with this (I will instruct users to decrease the quality when taking photos).

I can scroll through existing photos and all, but I don't have a clue how to access the file and upload it to the web. The example that comes up all the time uses a <INPUT TYPE="file"> which I don't want to use, as it's very awkward to use on a phone, and is ulgy has hell. If there were a input type="photo" or type="video" it would be a godsend.

How can I do something like the Facebook widget? I notice something called APIBridge in that widget searching Google and Nokia I can't find anything. Is this some private API I can't access?

I'd appreciate if someone could give me a few pointers in the right direction.

The main topics here are camera integration from the widget, for both photos and video, and how to upload the file. If there was any way to access the raw data from the file, I can encode it to base64 or something else and upload that in a simple AJAX request.

Thanks for any help.

Best regards,