- error field gives nothing
- i moved max_file_size just before but nothing
- i selected small images

the question is, with jquery and ajax, is it possible to have in the
same form text fields and files field !
with javascript the answer is yes but with this plugin ?


On 30 jan, 00:45, brian <bally.z...@gmail.com> wrote:
> What does the error field say? And I'm pretty sure that MAX_FILE_SIZE
> must come immediately before your file input element.
>
> Also, are you sure the file is within your upload limit?
>
> On Thu, Jan 29, 2009 at 1:01 PM, phicarre <gam...@bluewin.ch> wrote:
>
> > jquery.form.js v2.18
>
> > I have a form with a lot of fields and one upload file field:
>
> > <form action='' id='form1' enctype='multipart/form-data' style='font-
> > size:85%'>
> >    <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
>
> >    <table >
> >        <tr><td>Nom: </td><td><input type='text' size='30' id='nom'
> > name='nom' /></td></tr>
> >        <tr><td>Prénom: </td><td><input type="text" size="30"
> > id="prenom" name="prenom" /></td></tr>
> >        <tr><td>Photo: </td><td><input type="file" size="40"
> > id="photo" name="photo" /></td></tr>
> >    </table>
> > </form>
> > </div>
>
> > $('#form1').ajaxSubmit(
> >    {
> >        type: 'POST',
> >        url: 'create.php',
> >        beforeSubmit: showRequest ,
> >        success: function(msg) {},
> >        error: function(requete,iderror) {alert(iderror);}
> >    }
> >    );
>
> > In create.php, the $_FILES is correct  (name,size,type,tmp name,error)
> > BUT the $POST is empty !
> > Why ?

Reply via email to