[TYPO3] Mailformplus - saveDB - filename mapping missing

Michal Szostak michal.szostak at fabrykacms.pl
Thu Apr 24 17:06:34 CEST 2008


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