Hallo
Ich nutze den formhandler und möchte beim Dateiupload Fehlermeldungen ausgeben. Der Dateiupload ansich klappt einwandfrei. Aber es werden keine Error-Meldungen ausgegeben für:
- falsches Dateiformat (wenn nciht GIF+JPG)
- maxSize (wenn Dateigröße überschritten)
Ich konnte die Lösung auch nicht in den Examples (MultiStep) finden.
Jemand eine Idee?
HTML-Template:
<div class="row">
###error_picture###
<label for="picture">###LLL:picture### ###required_picture###</label>
<input type="file" name="formhandler[picture]" id="picture" value="###value_picture###"/>
<div class="clear"></div>
<input type="submit" value="Upload file now" ###submit_reload### /><br />
Minimum size: ###picture_minSize###<br />
Maximum size: ###picture_maxSize###<br />
Allowed types: ###picture_allowedTypes###<br />
###picture_fileCount###/###picture_maxCount###<br />
###picture_remainingCount### files left to upload<br />
<p>Files: ###picture_uploadedFiles###</p>
</div>
TypoScript:
...
fieldConf {
picture {
errorCheck.1 = fileAllowedTypes
errorCheck.1.allowedTypes = jpg,gif
errorCheck.2 = fileMinSize
errorCheck.2.minSize = 20000
errorCheck.3 = fileMaxSize
errorCheck.3.maxSize= 100000
errorCheck.4 = fileMaxCount
errorCheck.4.maxCount = 2
}...