[TYPO3-english] Mailformplus and multiple file upload

Victor Livakovsky v-tyok at mail.ru
Fri Aug 14 00:32:46 CEST 2009


Hi, List.

I'm using 'th_mailformplus' extension and want to allow user to send 
more, than one file within one file upload field (which mailformplus 
should allow), but can't understand, how can I organise that?

I have this in my HTML template (almost same as in example):
<label for="cv">CV:</label>
        number of allowed files: ###cv_numberOfAllowedFiles###<br />
        allowed file types: ###cv_fileTypes###<br />
        allowed file size per file: ###cv_fileSize###<br />
        already uploaded files: ###cv_numberOfUploadedFiles###<br />
        remaining files: ###cv_numberOfRemainingFiles###<br />
        ###error_cv######value_cv###<input type="file" name="cv" id="cv" 
size="20" maxlength="50000" accept="*.pdf,*.doc" />


This in TS setup:
plugin.tx_thmailformplus_pi1.fieldConf {
  cv {
    numberOfAllowedFiles = 3
    fileTypes = pdf,doc
    fileSize = 500000
    fileUpload = fileadmin/user_upload/cv/
    errorCheck = required
    uploadedFiles {
      template = ###fileName### 
###fileSize######linkDelete_start###delete###linkDelete_stop###<br/>
      wrap = <div>|</div>
    }
    uploadedFiles.mail {
        plainTemplate = ###filePath######fileName###
        HTMLTemplate = <a 
href="###filePath######fileName###">###fileName###</a><br/>
    }
  }
}


But I really can't see, how this feature should work. I assume, that 
there must be some additional JS code and some additional link "upload 
file", which uploads file only without sending whole form data, but 
can't find a way to do that.

If you have an experience with it, give me, please, some hint.

Thank you in adavnce.


More information about the TYPO3-english mailing list