---
title: "mailformplus datei-upload"
url: "https://www.typo3.net/d/60421-mailformplus-datei-upload"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2007-04-02"
last_reply: "2007-04-02"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# mailformplus datei-upload

Extensions · 0 Antworten · gestartet 2007-04-02

## Eröffnungsbeitrag

**360kom** · 2007-04-02 · [Beitrag #1](https://www.typo3.net/d/60421-mailformplus-datei-upload/1)

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:

```typoscript
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):

```php
<!-- ###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

---

Quelle: „mailformplus datei-upload“, typo3.net, https://www.typo3.net/d/60421-mailformplus-datei-upload
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
