webOS Nation Forums >  webOS Discussion >  Open webOS General Discussion > How Do File Input HTML Forms Work?
How Do File Input HTML Forms Work?
Thread Tools Display Modes
Old 07/11/2012, 01:52 AM   #1 (permalink)
Posts: 25
Should be relatively simple right? AFAIK,

1. HTML is specified on site for handling file uploads with some form action.

2. Browser pulls HTML and renders it. Gives you the "Choose file" box.

3. Clicking on "Choose file" passes the call to your system's file manager. (How does this work?) You select the file and hit "Ok".

4. This passes the location of the file to the Browser.

5. Clicking "Upload" then makes the browser take the file and continue to use the 'submit' input type in the form action and then does its TCP magic to send the file to the webserver.

Is this about right? I'm mostly concerned with steps 1-4.

Is anyone familiar with the Chromium source code and could point me to where this happens in the code?

edit: perhaps I should try the palm dev forums

Last edited by efiniti; 07/16/2012 at 12:18 PM.
efiniti is offline   Reply With Quote
Old 07/18/2012, 08:46 PM   #2 (permalink)
dkirker's Avatar
Posts: 1,179
It is quite complex (but not impossible). There are a few layers in the code that are required.

Not sure that you want to look through the Chromium source code... It is rather... complex... (billions of layers of abstraction last time I looked at it.)
Did you know:

webOS ran on a Treo 800 during initial development.
dkirker is offline   Reply With Quote
Thanked By: efiniti
Old 07/18/2012, 09:52 PM   #3 (permalink)
Homebrew Developer

Posts: 3,536
In one of the developer palm forums, unwiredben outlined the steps that would be needed to add file upload to webOS . . Be nice if we had it for sure. It could prob be implemented into the existing isis

-- Sent from my TouchPad using Communities
eblade is offline   Reply With Quote
Thanked By: efiniti


Thread Tools
Display Modes


Content Relevant URLs by vBSEO 3.6.0