On Wed, 2004-04-21 at 17:41 +0200, Ralph Ballier wrote:
Hallo,
ich wundere mich, dass es offensichtlich keine Möglichkeit gibt, Dateien in das System zu laden (außer Bilder). Ist es denn gar nicht möglich, z.B. pdf-Dateien hochzuladen? Steckt dahinter eine bestimmte Philosophie?
Aus DefaultSettings.php:
# This is the list of preferred extensions for uploading files. Uploading # files with extensions not in this list will trigger a warning.
$wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
# Files with these extensions will never be allowed as uploads. $wgFileBlacklist = array( # HTML may contain cookie-stealing JavaScript and web bugs "html", "htm", # PHP scripts may execute arbitrary code on the server "php", "phtml", "php3", "php4", "phps", # Other types that may be interpreted by some servers "shtml", "jhtml", "pl", "py", # May contain harmful executables for Windows victims "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
# This is a flag to determine whether or not to check file extensions on # upload. $wgCheckFileExtensions = true;
# If this is turned off, users may override the warning for files not # covered by $wgFileExtensions. $wgStrictFileExtensions = true;
Du kannst die erlaubten Endungen also in LoclaSettings.php konfigurieren, z.B. $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg", "pdf", "gz" ); o.ä..
Grüße