MyXoops Forum

Forum - myXOOPS German Support

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

Aw: Fotoupload

Betreff: Aw: Fotoupload
von mambax7 am 26.07.2014 08:30:21

Hast Du bereits XOOPS 2.5.7 installiert?

In XOOPS 2.5.7, wir haben in XoopsMediaUploader __construct folgendes gemacht:

$maxUploadInBytes   = $this->return_bytes(ini_get('upload_max_filesize'));
$maxPostInBytes     = $this->return_bytes(ini_get('post_max_size'));
$memoryLimitInBytes = $this->return_bytes(ini_get('memory_limit'));
if (
intval($maxFileSize) > 0) {
   
$maxFileSizeInBytes = $this->return_bytes($maxFileSize);
   
$newMaxFileSize     = min($maxFileSizeInBytes, $maxUploadInBytes, $maxPostInBytes, $memoryLimitInBytes);
   } else {
       
$newMaxFileSize = min($maxUploadInBytes, $maxPostInBytes, $memoryLimitInBytes);
}
$this->maxFileSize = $newMaxFileSize;



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