Zum Inhalt springen

mailformplus datei-upload

Erstellt am 2. April 2007 · Noch keine Antworten

Tags: Frage

360kom ·

Hallo Leute,

ihr seid meine letzte Hoffnung. Ich suche seit knapp einer Woche nach einer Lösung für mein Typo3 Problem. Speziell für das mailformplus-extension.

Ich möchte nur einen simplen Datei-Upload realisieren, bekomme dies aber irgendwie nicht hin. Auch die Beispieldateien können mir nicht weiterhelfen. Ich wäre euch echt dankbar, wenn ihr mir helfen könntet.

Der Mailversand selber funktioniert einwandfrei. Es kommt nur keine Datei an.

Also hier mal mein TS:

plugin.tx_thmailformplus_pi1.default.template=fileadmin/kontaktformular.html
plugin.tx_thmailformplus_pi1.saveDB = 1
plugin.tx_thmailformplus_pi1.saveDB {
    dbTable = tt_content

    fileUpload = uploads/mailform/
    fileTypes = jpg,gif,png,jpeg

    # change .117. to an existing page-ID in your TYPO3    project
    dbinsert=pid:117,hidden:0,CType:textpic

    # if dbkey is not set: "uid" is taken
    dbkey =uid

# [inputFieldName]:[DBName]
mapping=name:header,subject:bodytext,upload:image}

plugin.tx_thmailformplus_pi1.fieldConf {
  email {
      errorCheck = email
  }
  upload {
    numberOfAllowedFiles = 1
    fileTypes = jpg,gif
    fileSize = 200000
    fileUpload = uploads/mailform/
    errorText = <li>PHOTO not filled out correctly</li><br />
    
    uploadedFiles {
      template = <tr><td>###fileName### ###fileSize###</td><td>###linkDelete_start###löschen###linkDelete_stop###</td></tr>
      wrap = <table border="0" cellspacing="0" cellpadding="0">|</table>
    }
   }
 }

und hier ein Teil meiner eingebundenen Html-Datei (Also das Kontaktformular):

<!-- ###TEMPLATE_FORM### Form begin -->
<br />

<form name="form###PID###" action="index.php?id=###PID###" method="post" enctype="multipart/form-data">

<!-- versteckte Felder begin -->
    ###HIDDENFIELDS###
    <input type="hidden" name="L" value="0" />
    <input type="hidden" name="id" value="###PID###" />
    <input type="hidden" name="submitted" value="1" />
<!-- versteckte Felder end -->

		<label for="upload">Bilder hochladen (Zur Veranschaulichung, falls vorhanden)</label><br />
		###error_upload######value_upload###<input type="file" name="upload" size="20" maxlength="50000" accept="*.jpg,*.gif" />

<!-- Prüf begin -->
    ###FORM_EXAMINE###
<!-- Prüf end -->
<!-- ###TEMPLATE_FORM### Form end -->

Habt ihr ne Idee, was ich falsch mache. Danke schonmal im Vorraus

Schönen Gruß

Chris