--
Hector
Sent from Temecula, California, United States
On Thu, Jul 30, 2009 at 11:37 AM, Grundee <grundee@gmail.com> wrote:
When the ajax form is uploading a file it uses a hidden IFRAME as the
target.
HTTP_X_REQUESTED_WITH is set when it is submitted using the
XMLHttpRequest, but files cannot be uploaded this way.
There isn't any way I know of to detect an AJAX request specifically
in this instance (being as this is technically not AJAX)
but you can check that HTTP_X_REQUESTED_WITH is not set and that the
file is uploaded in $_FILES.
No comments:
Post a Comment