Javascript

G

Guest

Hi

i want to UPLOAD documents using JAVASCRIPT on Client Side.

My Q is how to read the DOCUMENT on the CLIENT mc and pack it in an XML
below, i will be streaming the XML to the Server (Dont bother abt the
streaming part).

<FILE_MSG>
<FILENAME>filename<FILENAME>
<FILESIZE>filesize<FILESIZE>
<FILECONTENT>fileCntnt</FILECONTENT>
</FILE_MSG>



=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------
 
B

bruce barker

the only way with the browser is to use the <input type="file"> element.
the javascript cannot see the file content (unless the server
posts it back). to do what you want you would need to write an active/x
control.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top