Using xajax, get File POST variable for Upload |
[eluser]coldfire82[/eluser]
Hi, I have a html form with File fields in it to browse/upload the file. I call this form via xajax in a div. Now, what I need is to get the $_FILE variable values in javascript/CI code behind. e.g. my html form (dummy, ignore any problem with it.) Code: <form> in JS Code: function upload_iamge(){ my xajax registered function in .php file Code: funciton upload_image(file_variable){ Has anyone done file upload with xajax and CI ? If yes, then help please Thanks.
[eluser]Oskar Smith[/eluser]
Hello, I'm not familiar with xajax but just to check that you're aware that file uploads can't be done with javascript/ajax (XMLHttpRequest)? I'm pretty sure it's a security restriction, so instead you have to "fake it" with Flash etc. There's lots of options on a Google search. Here's a thread about it: http://stackoverflow.com/questions/16622...ith-jquery |
Welcome Guest, Not a member yet? Register Sign In |