[TYPO3-english] Mailformplus and multiple file upload

Victor Livakovsky v-tyok at mail.ru
Fri Aug 14 18:16:56 CEST 2009


Hi, Reinhard.

Thank you for a detailed responce! Now I can make it working as desired :)
> Hi Victor,
>
> fist of all I advice you to use the extension 'formhandler' in the 
> future because it is the successor of th_mailformplus (which will not be 
> maintained any further).
>
> In Formhandler (and mostly in th_mailformplus too) it works this way:
>
> In order to make a multiple file upload possible you have a special 
> marker called ###submit_reload###. You place this along with a submit 
> button and the form will not go to the next step but stay at the current 
> step and perform file uploads.
> When using th_mailformplus you have to search in the manual for that 
> feature because I don't remember how it worked there. I only remember 
> that in th_mailformplus multiple file upload is only possible in multi 
> step forms. There is a similar marker to ###submit_reload### in 
> th_mailformplus too. Just search the manual for it.
>
> Example for Formhandler:
>
> <input type="file" name="cv" id="cv" size="20"/>
> <input type="submit" value="Upload file now" ###submit_reload###/>
>
> TypoScript:
>
> plugin.Tx_Formhander.settings {
>
>    ...
>
>    validators.1.class = Validator_Default
>    validators.1.config.fieldConf {
>      cv {
>        errorCheck {
>          1 = fileMinCount
>          1.minCount = 1
>          2 = fileMaxCount
>          2.maxCount = 5
>        }
>      }
>    }
>
>    ...
>
> }
>
> This basically allows the user to upload up to 5 files but at least 1.
>
> Workflow:
>
> - The user browses for a file and clicks "upload file now".
> - The user repeats this action until he has uploaded all files he wants
> - The user clicks "next" or "send" to go to next step of the form.
>   


More information about the TYPO3-english mailing list