||View All MessagesBack to WebFX|
I use the xmlhttp request object extensively in my PHP web apps, I have done all the usual stuff such as poll my database (MySQL) for duplicate user names and alert back without page reload. I have also used it to load text/html into a page similar to what can be done with Flash remoting in a round about way.
My problem now is I am wanting to use the xmlhttp request to upload files, what I have is this:
// what header should I use?
// document.forms.elements['imageUpload'].value is my file field value
Basically the problem is my JS above sends this to my PHP page but my PHP page is sending back a message that my file field is a $_POST var instead of a $_FILES var, therefore I can not process the upload with PHP because it sees it as a text field and not a file field.
Any tips would really be appreciated and although I *think* this can be done, I am not 100% sure so please advise.
First time I have posted here, I want to take this opportunity to thank you for a great site and resource.