The comment on mime type array in code says:<br><br>&quot;Limit the kinds of files we&#39;re willing to serve up&quot;<br><br>So I believe the intention is that, well, its supposed to limit the kinds of files that Asterisk will serve up :)
<br><br><div><span class="gmail_quote">On 3/21/07, <b class="gmail_sendername">Steven Critchfield</b> &lt;<a href="mailto:critch@basesys.com">critch@basesys.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 2007-03-21 at 16:45 +0000, Tim Panton wrote:<br>&gt; On 21 Mar 2007, at 14:59, Pari Nannapaneni wrote:<br>&gt;<br>&gt; &gt; Hi all,<br>&gt; &gt; Can some one please add the following mime type in asterisk webserver.
<br>&gt; &gt;<br>&gt; &gt; http.c<br>&gt; &gt; -------<br>&gt; &gt;&nbsp;&nbsp; mimetypes[] = {<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &quot;png&quot;, &quot;image/png&quot; },<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &quot;jpg&quot;, &quot;image/jpeg&quot; },<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &quot;js&quot;, &quot;application/x-javascript&quot; },
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &quot;wav&quot;, &quot;audio/x-wav&quot; },<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &quot;mp3&quot;, &quot;audio/mpeg&quot; },<br>&gt; &gt; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &quot;svg&quot;, &quot;image/svg+xml&quot; },<br>&gt; and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&quot;jar&quot;,&quot;application/java-archive&quot;}
<br><br>mmm, Wouldn&#39;t all this be better served by using the mime information<br>that should be installed on your system already?<br><br>Maybe that should be the proper feature request. Read and properly parse<br>the /etc/mime.types file. This way feature adds do not require code
<br>changes.<br>--<br>Steven Critchfield &lt;<a href="mailto:critch@basesys.com">critch@basesys.com</a>&gt;<br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">
Easynews.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a>
<br></blockquote></div><br><br clear="all"><br>-- <br>sean