Archived:File upload in Series 40 Web Apps
hamishwillee
(Talk | contribs) m (Hamishwillee - Archive article) |
hamishwillee
(Talk | contribs) |
Revision as of 09:23, 20 September 2012
This article is obsolete. Nokia Web Apps 2.0 Beta supports file upload directly in web app context. Please see UpDownExample in samples view.
This article introduces one possible workaround to enable file uploading in Series 40 Web Apps
Article Metadata
Tested with
Compatibility
Article
Overview
Nokia Browser 1.5.0.34.11 supports file upload on web pages, but not in a Web App context. If one tries to upload a file from a web app, it fails with “internal server error 500” message. As a workaround a one can set up a web page, which handles uploading, on an external server. In the Web App insert a link to newly created upload page.
Web App:
<div onclick="mwl.loadURL('http://www.yourserverexample.com/up/upload.html');">Upload file</div>
Once user clicks the link, a new browser window is opened. After user is done with uploading she/he can close the window, by clicking the close button [X] in the right lower corner.
Uploader web page:
For the server side code that handles actual uploading, please search the web and select one that suits to your use. Tizag.com has good guide on getting started with the PHP implementation.

