[TYPO3] Mailformplus - saveDB - filename mapping missing

Reinhard Führicht rf at typoheads.at
Thu Apr 24 19:13:29 CEST 2008


Hi Michal,

unfortunately the mapping of filenames does not work with the new 
notation (since 4.0 I guess). For filenames you should use the old notation:

saveDB.mapping = picture:picture

I think this should work.

regards,
Reinhard

Michal Szostak schrieb:
> Hi List,
> 
> I've got a little problem with mailformplus used for storing form results in 
> DB.
> 
> Everything works fine except storing file names in DB.
> Files are being correctly uploaded on a server (with a naming scheme: 
> [md5]_[pageUID]_[recordUID]_[original file name]), but their names are not 
> inserted to the record in DB. Other fileds are mapped correctly.
> 
> My TS config:
> 
> plugin.tx_thmailformplus_pi1 {
> fieldConf {
> 
> picture {
>  errorCheck = required
>  errorText = TEXT
>  errorText.value = <li>###LLL:picture###</li>
>  numberOfAllowedFiles = 1
> }
> }
> 
> saveDB = 1
> saveDB {
>  dbTable = tx_mypictures
>  fileUpload = fileadmin/user_upload/pictures/
>  fileTypes = jpg,jpeg,gif,png,bmp
>  fileSize = 2000000
>  dbinsert = pid:27
>  dbkey = uid
> 
>  #mapping
>  fields {
>   name.mapping = name
>   email.mapping = email
>   picture.mapping = picture
>   title.mapping = title
>  }
>  specialMapping = 1
>  specialMapping.crdate = 1
> }
> }
> 
> My HTML Template for file upload:
> 
> <label for="picture">###LLL:picture###:<br/><input type="file" 
> name="picture" id="picture" class="file"/><br/></label>
> 
> 
> 
> Kind regards and thanks in advance!
> Michal 
> 
> 


More information about the TYPO3-english mailing list