Ajax(jQuery) strange file post problem -


I have a problem posting files through the AJAX jQuery function. I have something like this:

  $ ('# my_form'). Submit (function () {var serialized = $ (this) .formSerialize (); var sUrl = "xxx"; $ .jax ({url: sUrl, type: "POST", data: serialized, success: function (Data) {$ (". Main_container") .html (data);}}) return false; // send this return statement block file content}}  

when I Return false statement , everything is okay, get server side file content and etc, but when it is (I monitor with firebug) that this posting only sends the filename What is wrong Ho

PS - I need a false statement instead, because I want to manipulate my return data.

First Stop -

to

You can not read local files with JS, so that you can not get them XMLHttpRequest .

Lists many alternative methods.


Comments