Uploading files through XMLHttpRequest()
There is a form which uploads file to a web page:
<form method="POST" action="https://woodmin.catsone.com
<input name="resume" type="file">
I need to overwrite it in such way that the same thing would be done through XMLHttpRequest() but so far I haven't suceeded I would be gratefull if someone could tell me how can this be done. My currently code:
var params=" resume=C://CV-Online.htm";
xmlhttp.setRequestHeader ("ENCTYPE", "multipart/form-data");
Thank you in advance!
Thank you for your response, but this is not a solution for me. Maybe I should have added this in my first post:
I have to make firefox plugin which uploads current html file to a CATS database. This function should be used: http://www.catsone.com/api/add_attachment. So iframe won't work in this case because user must select file by himself. Is there a solution to this problem?
in firefox, you can use the file input's .files collection to graba a string version of the file to be uploaded.
you would then say something like:
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)