MyXoops Forum

Forum - myXOOPS German Support

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

Aw: Fotoupload

Betreff: Aw: Fotoupload
von mambax7 am 26.07.2014 11:55:21

Zitat:
Ich schau mal, ob ich die Fehlerbehandlung in die uploader.php einbauen kann und poste dann den Code.


Das haben wir bereits:

function checkMaxFileSize()
{
  if (!isset(
$this->maxFileSize)) {
      return 
true;
  }
  if (
$this->mediaSize > $this->maxFileSize) {
      
$this->setErrors(sprintf(_ER_UP_FILESIZETOOLARGE, $this->maxFileSize, $this->mediaSize));

      return 
false;
  }
  return 
true;
}


Oder brauchst Du was anderes?

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5732 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