I've used this tutorial to build an option page form with Ajax.
Now, i want to use the wp_handle_upload to upload an image. i tried this http://pastebin.com/35HW8RSZ but with no success.
help will be appreciated. Asaf.
You need to include a few files to get
so after you add this function to your file just change your call from :
Just remembered that you must use an ajax upload solution like:
any other or submit by iframe since it is not possible to upload files using the browser's XMLHttpRequest object
I found a very simple solution here. It Exceeds any external Ajax solution, in my opinion.