- From: Jonas Sicking <jonas@sicking.cc>
- Date: Tue, 10 Nov 2009 07:48:17 -0800
- To: Anne van Kesteren <annevk@opera.com>
- Cc: Darin Fisher <darin@chromium.org>, public-webapps@w3.org
Yay! On Tue, Nov 10, 2009 at 4:06 PM, Anne van Kesteren <annevk@opera.com> wrote: >>>> WebKit presently supports sending File. It does not support FileData >>>> yet. >>> >>> Is Content-Type set to anything specific if the author has not set it? >> >> // FIXME: Should we set a Content-Type if one is not set. >> >> ^^^ looks like it presently depends on the web page setting the C-T header >> manually :-/ I think that should be fixed to be based on the system's >> knowledge of the file's mime type. > > So far I have only added support for Blob (the new FileData) of these two > and set the Content-Type to application/octet-stream if not provided by the > Web author. Should I also add File and set the Content-Type to > File.mediaType? I definitely think so yes. Same thing for the send() function. On a separate note, is sending "application/octet-stream" really better than simply sending no Content-Type header at all when sending a Blob (or a File with empty mediaType)? / Jonas
Received on Tuesday, 10 November 2009 15:49:10 UTC