W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: [File API] feedback on August 1/5 draft

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 06 Aug 2009 20:42:35 +0200
To: "Jonas Sicking" <jonas@sicking.cc>
Cc: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.ux87k9ua64w2qv@anne-van-kesterens-macbook.local>
I meant File rather than any, yes. Oops. Also:

On Thu, 06 Aug 2009 20:29:37 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
> On Thu, Aug 6, 2009 at 4:04 AM, Anne van Kesteren<annevk@opera.com>  
> wrote:
>> I have not received any feedback on my comments as to why getAsDataURL  
>> is actually needed. I still think it should be dropped.
>
> Given that the filedata url is very limited in time, getAsDataURL
> still seems useful IMHO.

What is the use case? If the use case is storage I think we should address  
that issue specifically.

And how limited is it exactly? Ian was also suggesting you could increase  
the duration somehow in his original proposal for the new URL scheme. I  
haven't seen any email addressing that point yet.


>> The constants of FileError need to be actually placed on the FileError  
>> object and renumbered as to make sense. They are not DOM exceptions so  
>> it does not make sense to align with that in any way.
>
> It seems useful to use the same code for people that want to display
> error messages to the user, this way you can either pass the value in
> the DOM event or from an exception to the same function.

If you use the same constant name you can still do that.


> I also can't see a downside to aligning the values?

What if we introduce a new DOM Exception. Will it have to skip these  
numbers? Apart from that, this design is not consistent with similar APIs:  
MediaError and SQLError.


>> Last time I also made comments regarding the details of discovering the  
>> encoding of a file etc. Those still seem to apply.
>
> Got a pointer to the actual question?

http://lists.w3.org/Archives/Public/public-webapps/2009AprJun/1105.html  
second bullet point under getAsText(). In particular the way to derive the  
encoding is completely left up to the user agent. I do not think that is  
acceptable as the bug reports we end up getting from that will be very  
confusing and very hard to figure out. Effectively it will mean we'd have  
to reverse engineer the market leader.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Thursday, 6 August 2009 18:43:24 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT