MyXoops Forum

Forum - myXOOPS German Support

3 + 6 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

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 > 0 ) {   
    if ( 
$this->maxFileSize > $php_maxsize ) $this->maxFileSize = $php_maxsize;
        }


Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5731 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 2061 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag