maik76 0 Report post Posted June 23, 2004 hi, kann mir bitte mal jemand erklären oder ne informationsquelle nennen, wie ich zusätzliche uploadfähige dateitypen in der conf_mime_types.php eintragen kann? ich vertstehe die einträge nicht so ganz, kann ich die erforderlichen werte in meiner registry ablesen? ich möchte z.b. gerne, dass meine leute auch excel-dokumente hochladen können... gruß maik Share this post Link to post
Helge 192 Report post Posted June 23, 2004 Was die einzelnen Bereiche / Spalten bedeuten steht schon in der conf_mime_types.php als Überschrift, bedarf also eigentlich keiner weiteren erklärung Ein kurzes Suchen bei Google nach "mime typen" lässt folgende Seite als erstes Suchergebnis ausgeben: http://de.selfhtml.org/diverses/mimetypen.htm Dort findest du alle Mime Typen die du verwenden kannst. Du musst nun also nur eine neue Zeile einfügen für Excel Dateien. Orientiere dich am besten an den Überschriften der Spalten, dann wirst du damit schon klar kommen, wenn nicht, Frag nochmal. Share this post Link to post
maik76 0 Report post Posted June 23, 2004 hab es so probiert, meine "conf_mime_types.php" sieht jetzt so aus: <?php $mime_types = array( // mime allow post img type allow avatar "application/pdf" => array( 1, 'pdf.gif' , 'PDF Document' ) , "image/x-png" => array( 1, 'quicktime.gif' , 'PNG Image' , 1 ) , "image/png" => array( 1, 'quicktime.gif' , 'PNG Image' , 1 ) , "video/vivo" => array( 1, 'win_player.gif', 'VIVO Movie' ) , "application/x-compress" => array( 1, 'zip.gif' , 'Compressed File') , "video/x-msvideo" => array( 1, 'win_player.gif', 'MS Video' ) , "text/html" => array( 1, 'html.gif' , 'HTML Page' ) , "audio/x-pn-realaudio" => array( 1, 'real_audio.gif', 'Real Audio File') , "image/gif" => array( 1, 'gif.gif' , 'GIF Image' ,1 ) , "video/mpeg" => array( 1, 'quicktime.gif' , 'MPEG Video' ) , "image/ico" => array( 1, 'gif.gif' , 'Icon File' ) , "application/x-tar" => array( 1, 'zip.gif' , 'TAR Ball' ) , "image/x-MS-bmp" => array( 1, 'bmp.gif' , 'BMP Image' ) , "image/tiff" => array( 1, 'quicktime.gif' , 'TIFF Image' ) , "text/richtext" => array( 1, 'txt.gif' , 'Rich Text' ) , "audio/x-realaudio" => array( 1, 'realaudio.gif' , 'Real Audio' ) , "application/mac-binhex40" => array( 1, 'stuffit.gif' , 'Mac Binary' ) , "audio/x-aiff" => array( 1, 'quicktime.gif' , 'AIFF File' ) , "application/x-gzip" => array( 1, 'zip.gif' , 'GZIP File' ) , "application/zip" => array( 1, 'zip.gif' , 'ZIP File' ) , "application/postscript" => array( 1, 'postscript.gif', 'Postscript' ) , "application/msword" => array( 1, 'word.gif' , 'MS Word doc' ) , "video/quicktime" => array( 1, 'quicktime.gif' , 'QuickTime Movie') , "application/powerpoint" => array( 1, 'apps.gif' , 'PowerPoint Doc' ) , "audio/x-wav" => array( 1, 'sound.gif' , 'WAV File' ) , "audio/x-mpeg" => array( 1, 'mp3.gif' , 'MPEG Audio' ) , "image/jpeg" => array( 1, 'jpeg.gif' , 'JPEG Image' ,1) , "application/x-zip-compressed" => array( 1, 'zip.gif' , 'ZIP File' ) , "application/octet-stream" => array( 1, 'quicktime.gif' , 'OCTET Stream' ) , "text/plain" => array( 1, 'text.gif' , 'Text File' ) , "image/pjpeg" => array( 1, 'jpeg.gif' , 'JPEG Image' ,1) , "application/x-shockwave-flash"=> array( 0, 'quicktime.gif' , 'Flash' ,0) , "application/msexcel" => array( 1, 'excel.gif' , 'MS Excel xls' ) , ); ?> trotzdem bekomme ich beim versuch, eine xls hochzuladen noch die fehlermeldung "Du kannst diesen Dateityp nicht hochladen!" die synchronisierung habe ich vorgenommen, was mache ich falsch? gruß maik Share this post Link to post
Helge 192 Report post Posted June 23, 2004 Schau dir mal dieses Thema an, das sollte dir helfen :) Share this post Link to post
maik76 0 Report post Posted June 25, 2004 okidoki, danke, habe da jetzt noch mal reingepostet... gruß maik Share this post Link to post