Thursday, July 31, 2008

Web-Based File Transfer


One of the primary reasons to set up a personal mobile web site is to share mobile content (e.g., wallpapers and ring tones) with friends, or across several devices you own. It is easy to set up a page where your phone can download files via its WML or HTML browsers. The native Services browser allows you to download common media format files to the Gallery. Most Nokia phones also support web-based file uploading. The following XHTML MP page shows a file upload form on the device browser. You can select a file from the Gallery and submit the form to the server

The following listing is the HTML code for the file upload page:
Download here

On the server, the following PHP script (i.e., the processor.php file on the web server) saves the file to the specified directory:
Download here

No comments: