You can't upload files using AJAX (XHR), so using $.post cannot upload a file for you. There are workarounds to uploading files in an AJAX fashion mainly using Flash or hidden IFRAME. Just do a search on it and you'll find plenty of articles and scripts for it.
On Jun 10, 3:11 am, animafac <anima...@gmail.com> wrote: > Hy, > > Sorry for my english but i'm frensh. > > I have a question and is it possible to get the value of upload file > in a form with the $_FILES in php because in jquery we get the POST > value. > > $.post("test.php", > { name: "John", time: "2pm" }, > function(data){ > alert(data); > } > ); > > Thank for help