I am trying to code AJAX file upload option . I don’t want to mimic it for Ajax using iframe as most of the example online did , but I want a pure Ajax i.e. Zero page refresh . On server end I will handle the file with PHP as long as I can get following
One solution I found is to encode binary file to Base64 and then POST it using AJAX . On server side just decode it and you can have whole binary array . But problem with this approach is size of file . As Base64 Encoding actually increases the size of data rather than decreasing .
Hey if you get a chance will you please post the code of ifram example. Thanks.
I thought I could just use plain Ajax to make it work , but I think it is not possible . First I can't read file using JavaScript (only for IE you can) , which is a limitation . Second will be the file size problem .
I'll look into this JQuery thingy . But it is not Ajax , as it still reloads the page .