Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Tankred

Mime Types

Recommended Posts

Ich möchte den Upload von PowerPoint-Folien zulassen, doch leider quittiert das IPB dies mit der Meldung, dieser Dateityp sei nicht erlaubt. Unter conf_mime_types.php steht das folgende:

    "application/powerpoint"      => array( 1, 'apps.gif'      , 'PowerPoint Doc' ) ,

So scheint es doch, als sei der Upload dieses Dateityps doch möglich. Wieso weigert sich denn dann mein Board?

Share this post


Link to post

Ggf. gibt der Webserver eine etwas andere Bezeichnung des Mime-Types raus.

Eine einfache Möglichkeit, um den richtigen Typ herauszubekommen ist folgende.

Suche in der Post.php folgende Stelle:

  //-------------------------------------------------
 // Are we allowing this type of file?
 //-------------------------------------------------

 if ($mime_types[ $FILE_TYPE ][0] != 1)
 {
 $this->obj['post_errors'] = 'invalid_mime_type';
 return $attach_data;
 }
Und darüber füge mal folgendes ein:
echo "Dateityp: ". $FILE_TYPE;

Lade dann nochmal eine Powerpointdatei hoch und es sollte dir am obersten Forenrand den Typ auswerfen, den er ermittelt hat. Diesen muß du dann in deine conf_mime_types.php eintragen. :)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×