Re: uploading files with HTML_AJAX
| From: | Joshua Eichorn | Date: | Tue, 18 Sep 2007 21:27:30 +0000 |
| Subject: | Re: uploading files with HTML_AJAX | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27954@lists.php.net to get a copy of this message | ||
You can't upload files using XMLHttpRequest so you'll need to use a hidden iframe as a form target instead. HTML_AJAX doesn't have any direct support for this because there isn't a way to do it transparently.
-josh
Fernando Usero Fuentes wrote:
Hi, i'm using HTML_AJAX to manage a form. It works nice, but i wonder if there is support for uploading files. The way I'm using HTML AJAX is calling to a Javascript function when the onsubmit event occurs. This javascript method has a corresponding php method that processes the form data. The javascript method has as arguments the form data. any hint on how to upload files using this scheme? regards, Fernando Usero