Hallo,
ich habe mal wieder ein Problem. Ich möchte beim Dateiupload nur bestimmte Dateitypen erlauben. Ich leider nur herausgefunden, wie es bei WORD und EXEL funktioniert. Alles andere funktioniert so nicht.
Ausschnitt aus meinem Programm:
	
Ich würde mich wirklich freuen, wenn Ihr mir da weiterhelfen würdet.  
Vielen dank
					ich habe mal wieder ein Problem. Ich möchte beim Dateiupload nur bestimmte Dateitypen erlauben. Ich leider nur herausgefunden, wie es bei WORD und EXEL funktioniert. Alles andere funktioniert so nicht.
Ausschnitt aus meinem Programm:
PHP-Code:
	
	
if ($file_type=="application/msword")
      {
      $typ="WORD";
      }
       if ($file_type=="application/pdf")
      {
      $typ="PDF";
      }
       if ($file_type=="application/vnd.ms-excel")
      {
      $typ="EXEL";
      }
       if ($file_type=="application/rtf")
      {
      $typ="RTF";
      }
       if ($file_type=="application/mspowerpoint")
      {
      $typ="Powerpoint";
      }
       if ($file_type=="application/x-shockwave-flash")
      {
      $typ="Flash";
      }
       if ($file_type=="application/zip")
      {
      $typ="zip";
      } 

Vielen dank
          
							
						
 
 Moderator
Kommentar