MyXoops Forum

Forum - myXOOPS German Support

9 - 2 = ?  
Geben Sie die Zeichenfolge aus dem Bild ein
Sie haben max. 10 Versuche.
 

Aw: Fotoupload

Betreff: Aw: Fotoupload
von alfred am 24.07.2014 18:49:24

/class/uploader.php
ca Zeile 148
nach

function XoopsMediaUploader($uploadDir$allowedMimeTypes$maxFileSize 0$maxWidth null$maxHeight null)
    {
        
$this->extensionToMime = include $GLOBALS['xoops']->path('include/mimetypes.inc.php');
        if (!
is_array($this->extensionToMime)) {
            
$this->extensionToMime = array();
            return 
false;
        }
        if (
is_array($allowedMimeTypes)) {
            
$this->allowedMimeTypes =& $allowedMimeTypes;
        }
        
$this->uploadDir $uploadDir;
        
$this->maxFileSize intval($maxFileSize);


folgendes hinzufügen:

$php_maxsize = @ini_get('upload_max_filesize');
if ( @
ini_get('post_max_size') < $php_maxsize $php_maxsize = @ini_get('post_max_size');
  if ( 
$php_maxsize ) {   
    if ( 
$this->maxFileSize $php_maxsize $this->maxFileSize $php_maxsize;
        }


Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
OffOffTopic [Wichtig] Übernahme myXOOPS 0 494 11.12.2023 18:57
alfred Gehe zum letzten Beitrag
Die Installation und Administration von XOOPS 2.5.X [Offen] Upgrade 2.5.11 3 2208 07.05.2023 07:03
Goffy Gehe zum letzten Beitrag