[TYPO3-UG Dutch] mailformplus upload controle

Barbara Wijbenga bwijbenga at chello.nl
Fri Sep 21 09:53:41 CEST 2007


Ik gebruik Mailformplus om een bestand te uploaden, maar hij controleert 
helemaal niet wat voor extentie het bestand heeft. Dit is de code (vrijwel 
helemaal overgenomen van het voorbeeldformulier):

------------------------------------------------------------------------
...
plugin.tx_thmailformplus_pi1.fieldConf {
  email {
      errorCheck = email
      defaultValue.value = peter
  }
  profiel {
    numberOfAllowedFiles = 3
    fileTypes = pdf,doc
    fileSize = 500000
    fileUpload = fileadmin/user_upload/profielen/
    errorText = <li>Functieprofiel niet goed verstuurd</li><br/>
    uploadedFiles {
      template = ###fileName### 
###fileSize######linkDelete_start###löschen###linkDelete_stop###<br/>
      wrap = <div>|</div>
    }
    uploadedFiles.mail {
        plainTemplate = ###filePath######fileName###
        HTMLTemplate = <a 
href="###filePath######fileName###">###fileName###</a><br/>
        plainWrap = File start:|file end
        HTMLWrap = File start:|<br/>file end<br/>
    }
  }
}
...
 <td valign='top' style='padding-top:2px;padding-bottom:2px;'><br 
/>###error_profiel######value_profiel###<input size='25' type='file' 
name='profiel' maxlength='50000' accept='*.pdf,*.doc' /><br />
...

------------------------------------------------------------------------
Hij accepteert het gewoon als ik een .jpg upload. Bovendien zet hij het 
bestand altijd in uploads/tx_thmailformplus/ terwijl dat niet het pad van 
fileUpload is...

Wat doe ik fout?

Barbara 



More information about the TYPO3-UG-dutch mailing list