curl-and-php
Re: Set mime type for uploaded files
Date: Thu, 12 Apr 2007 16:37:07 +0200
header("Content-type: application/octet-stream"); would be my first guess.
if that's at all what you're talking about...
Mike
Petreanu Sebastian skrev:
> Hello,
>
> I'm want to upload video files to some servers. The problem is that I
> can't change the mime type for the file selected. If I choose a .wmv
> or .mpg file the same mime type will be used: application/octet-stream.
>
> I know I can set the mime type using the command tool. But how can I
> change this mime type in PHP?
>
> Thank you,
> Sebi
>
> ------------------------------------------------------------------------
> The fish are biting.
> Get more visitors
> <http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50>
> on your site using Yahoo! Search Marketing.
> <http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-04-12