[whatwg] HTML5 Offline web applications & file upload

On Fri, 14 May 2010, Alexandre Thiel wrote:
> 
> I was wondering if HTML5 Offline mode and file upload can work together ?
> I can't find any reference in the online draft which covers only server
> resource caching.
> Let's imagine you're writing some kind of data editor that works in offline
> mode, can you ask the user to select a file to import from his filesystem
> that can be processed with javascript or directly transfered to the
> localStorage while being offline ?

Yes, using the input.files attribute and then storing the result in 
localStorage.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 3 August 2010 16:39:11 UTC