Skip to content

Dart Editor integrated webserver needs more mime types. #3315

@DartBot

Description

@DartBot

This issue was originally filed by @bp74


What steps will reproduce the problem?

import('dart:html');

void main() {
  AudioElement audio = new AudioElement("sounds/plop.ogg");
  audio.on["error"].add((e) => print(e));
  audio.on["canplaythrough"].add((e) => audio.play());
}

What is the expected output? What do you see instead?

The code runs fine in Dartium, but fails in Firefox (and IE when you load a mp3 file). The reason is that the webserver in the Dart Editor sets the content type to "application/octet-stream". Firefox and IE refuse the file because they expect the mime type of an ogg file or a mp3 file.

Please add more mime type for well known file types like mp3, ogg, wav, ...

What version of the product are you using? On what operating system?
Dart Editor Build 8108 32 bit, Windows 7 64 bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions