hello, sorry for the previous stupid question, i managed to make it works on both clouds.
I'm now trying to make it works with email and FormIt2db hooks.
But each time i upload a new file it delete the previous one, and i can't uplaod more than one file at once.
here is my formit call :
[[!FormIt?
&preHooks=`db2FormIt, Formit2AjaxUpload`
&hooks=`AjaxUpload2Formit,FormIt2db,email`
&ajaxuploadFieldname=`image`
&ajaxuploadTarget=`../images/assets/syltattoo/`
&ajaxuploadUid=`image`
&ajaxuploadFieldname=`image`
&packagename=`demandes`
&classname=`Demande`
&emailSubject=`Mtutu`
&emailTo=`[email protected]`
]]
The form template :
<h3>[[!+fi.successMessage]] [[+fi.error.error_message]]</h3>
<div class="wrap"><form action="[[~[[*id]]]]" method="post" enctype="multipart/form-data">
<div id="name"><label for="name">Nom:</label></div>
<div class="controls"><input class="input-block-level" type="text" name="name" value="[[!+fi.name]]" /></div>
<div id="name"><label for="name">Email:</label></div>
<div class="controls"><input class="input-block-level" type="text" name="email" value="[[!+fi.email]]" /></div>
<div id="description"><label for="description">Description:</label></div>
<div class="controls"><input class="input-block-level" type="text" name="description" value="[[!+fi.description]]" /></div>
<div id="name"><label for="name">Partie du corps:</label></div>
<div class="controls"><input class="input-block-level" type="text" name="partie" value="[[!+fi.partie]]" /></div>
<div>
<label for="image">Envoyez une image</label></div>
[[!AjaxUpload?
&uid=`image`
&thumbX=`75`
&thumbY=`75`
]]
<input class="btn btn-primary" type="submit" value="Envoyer" /></form></div>
And this the kind of email i receive.
name: rzerezrezr
email: zerezrzer
description: zerzerzer
partie: zrzerzezer
image_fileid:0 file.name:
file.type:
file.tmp_name:
file.error: 4
file.size: 0
image: /assets/../images/assets/syltattoo/btnb_right.jpg
Did someone experienced something similar ?
[ed. note: hartus last edited this post 9 years, 6 months ago.]