<div class="gmail_quote">On Thu, Jan 14, 2010 at 11:04 PM, Ian Hickson <span dir="ltr"><<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, 14 Jan 2010, Darin Fisher wrote:<br>
> On Thu, Jan 14, 2010 at 12:10 PM, David Levin <<a href="mailto:levin@google.com">levin@google.com</a>> wrote:<br>
> ><br>
> > It seems like it the method should be toBlob.<br>
> ><br>
> > > This doesn't address my concern that you won't know the mime type of<br>
> > > the blob returned.<br>
> ><br>
> > This makes a good case to move the "readonly attrbiute DOMString type"<br>
> > from File to Blob.<br>
><br>
</div><div class="im">> I like this suggestion. It seems reasonable for a Blob, which is just a<br>
> handle to data, to have an associated media type.<br>
<br>
</div>What type should a blob have if it is the result of slicing another file?<br><font class="Apple-style-span" color="#888888"><br></font></blockquote><div><br></div><div>I had the same thought after sending this ;-)</div>
<div><br></div><div>A slicing operation that changes the size of the file should probably clear the type field or set it to application/octet-stream. Perhaps Blob.type should be settable in some cases?</div><div><br></div>
<div>-Darin</div></div>