I am working on a Library Administration web page. The page provides the
capability to add, edit, replace, suspend/activate, and delete documents from
the site Library. The user selects a function and the form is dynamically
produced using XML and the .innerHTML functionality.

My problem is I need to be able to allow the upload of a file without
actually submitting the form. All functionality of this admin interface is
based on using the CreateObject("MSXML2.XMLHTTP") functionality, sending XML
back and forth from client to server so the page does not have to reload.

Any suggestions on how to upload a file to the server from this page using
VBScript and a stream?

Thanks in advance to anyone who can figure it out.

Jim

Re: Uploading a File from a Form as Stream by Tim

Tim
Tue Jan 04 20:36:40 CST 2005

AFAIK there's no way (with safe security settings) that you could access the
user's file system to get the file other than submitting a form with a
"file" input.

Why don't you want to submit the form?

Tim.


"DJ" <DJ@discussions.microsoft.com> wrote in message
news:9C6A63AE-0DD3-43F4-B77D-87F1820D2064@microsoft.com...
> I am working on a Library Administration web page. The page provides the
> capability to add, edit, replace, suspend/activate, and delete documents
from
> the site Library. The user selects a function and the form is dynamically
> produced using XML and the .innerHTML functionality.
>
> My problem is I need to be able to allow the upload of a file without
> actually submitting the form. All functionality of this admin interface is
> based on using the CreateObject("MSXML2.XMLHTTP") functionality, sending
XML
> back and forth from client to server so the page does not have to reload.
>
> Any suggestions on how to upload a file to the server from this page using
> VBScript and a stream?
>
> Thanks in advance to anyone who can figure it out.
>
> Jim