Importing a .txt document from a web app

I have created a web based application and I am trying to import a .txt file from the users local drive. If I throw the files on the servers local drive it works fine, but I need it to come from the users drive. Here is the code I have…

Dim session As New NotesSession

Dim db As NotesDatabase

Dim dc As NotesDocumentCollection

Dim doc As NotesDocument

Dim stream As NotesStream

Dim pathname As String

Dim StudentDoc As NotesDocument

Set Doc = session.DocumentContext	

Set db = session.CurrentDatabase

Set stream = session.CreateStream

REM Use name of text file as subject

pathname = "C:\Path\"	

FileName = doc.FieldName(0) & ".txt"

pathname = pathname & FileName 

'Check to see if file as ASCII

If Not stream.Open(pathname, "ASCII") Then

	Messagebox pathname & stream.CHARSET,, "Open failed"

	Exit Sub

End If

I can’t get past this If statement obviously because it isn’t finding the file. Does anybody have ANY clue as to how this can be done.

Thanks In Advance…

Subject: Importing a .txt document from a web app…

Why don’t you have the user upload the file to a document…and then have your backend LS agent grab the doc…detach it to the server C: and process it?

That’s always the way I’ve done it.

Subject: RE: Importing a .txt document from a web app…

That’s definately a good way to go about it Mike, thanks for the option. I’ll go try it out now.

Thanks,

Mark

Subject: Importing a .txt document from a web app…

You can’t run LotusScript to do this – you would need to run signed code in the browser (VBScript, ActiveX or Java) and hope that the user is allowing you permission to access their local drive. Unless that is settable administratively (as in an intranet environment), then I wouldn’t count on it – only someone with an internet death wish would allow a foreign program, signed or not, to play with the file system if they can help it.