-
Easy question (?)
Hi,
I've written a DHTML application (a loan application) that will use a *.dll to do validation, etc. on the fields in the webpages. At the end, the end user clicks on submit, and a module will dump all the values of the fields out to a comma-delimited text file.
However, I need to get the text file back to the server. I can create a text file on the client machine using FileSystemObject (which doesn't help) and the only other information I can find is on RDS (Remote Data Service) but that is for accessing databases remotely.
Any ideas how I can accomplish this and salvage the code I've already written? (I know now that I should have done all this thru ASP, but I just learned that not too long ago...)
Thanks in advance for your help.
Stew
-
If your server is configured to allow HTTP uploads, you may be able to make an HTTP "PUT" request, which would upload your text file. I don't know if that'll work for your app/config, but it's an idea...
-
Well you could always do something like this :
Code:
Open "c:\localfile.txt" For Input As #1
Dim requestString As String
Dim tempString As String
requestString = "somefile.asp?filecontents="
tempString = Replace(Input(Lof(1), 1), vbCrlf, "///")
Close #1
Then you would request a file off the webserver :
requestString & tempString
And you would have now passed the contents of the file to the server via ASP.... or you could use some other script technology.