Re: [whatwg] HTML5 Offline web applications & file upload

2010-08-03 Thread Ian Hickson
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.   `._.-(,_..'--(,_..'`-.;.'


Re: [whatwg] HTML5 Offline web applications & file upload

2010-05-14 Thread Charles McCathieNevile
On Fri, 14 May 2010 12:19:32 +0200, Jeremy Orlow   
wrote:



There's a bunch of work currently happening on public-webapps and
public-device-apis @w3.org to enable many offline use cases like this.   
The most closely related specs are probably the FileSystem API and/or

the LocalStorage/IndexedDB APIs + FileReader.

Unfortunately these use cases are not very well supported in browser  
quite yet.  (No one is shipping FileSystem or

LocalStorage+StructuredClone or FileReader+StructuredClone as far as
I know.)


We (Opera) have been shipping a filesystem API since 10.10, although it is  
only enabled for widgets and Opera Unite applications at the moment.


cheers

Chaals


J

On Fri, May 14, 2010 at 10:51 AM, Alexandre Thiel  

wrote:



Hi,

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 ?

Alexandre




--
Charles McCathieNevile  Opera Software, Standards Group
je parle français -- hablo español -- jeg lærer norsk
http://my.opera.com/chaals   Try Opera: http://www.opera.com


Re: [whatwg] HTML5 Offline web applications & file upload

2010-05-14 Thread And Clover

On 05/14/2010 11:51 AM, Alexandre Thiel wrote:


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. See http://www.w3.org/TR/file-upload/

--
And Clover
mailto:a...@doxdesk.com
http://www.doxdesk.com/


Re: [whatwg] HTML5 Offline web applications & file upload

2010-05-14 Thread Jeremy Orlow
There's a bunch of work currently happening on public-webapps and
public-device-apis @w3.org to enable many offline use cases like this.  The
most closely related specs are probably the FileSystem API and/or the
LocalStorage/IndexedDB APIs + FileReader.

Unfortunately these use cases are not very well supported in browser quite
yet.  (No one is shipping FileSystem or LocalStorage+StructuredClone or
FileReader+StructuredClone as far as I know.)

J

On Fri, May 14, 2010 at 10:51 AM, Alexandre Thiel  wrote:

> Hi,
>
> 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 ?
>
> Alexandre
>


[whatwg] HTML5 Offline web applications & file upload

2010-05-14 Thread Alexandre Thiel
Hi,

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 ?

Alexandre