Hi All,
Hoping someone could point me in the right direction here.
I moved a classic asp website from an old WinNT4 to Windows2003 server, and the good old asp file upload doesn't work now for some reason.
The error I get is: "Invalid procedure call or argument"
The code is:
It does create a file, but no data in it.
The error line is the one starting with "oFile.Write..."
I've been trying this and that for two weeks now, and can't come up with an answer or a more narrow reason behind the error message.
Anyone with any ideas? perhaps a function/method no longer supported in Win2k3?
Thnx,
-Peter
Hoping someone could point me in the right direction here.
I moved a classic asp website from an old WinNT4 to Windows2003 server, and the good old asp file upload doesn't work now for some reason.
The error I get is: "Invalid procedure call or argument"
The code is:
Code:
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
If Not oFS.FolderExists(sPath) Then Exit Sub
Set oFile = oFS.CreateTextFile(sPath & FileName, True)
For nIndex = 1 to LenB(FileData)
oFile.Write Chr(AscB(MidB(FileData,nIndex,1)))
Next
oFile.Close
It does create a file, but no data in it.
The error line is the one starting with "oFile.Write..."
I've been trying this and that for two weeks now, and can't come up with an answer or a more narrow reason behind the error message.
Anyone with any ideas? perhaps a function/method no longer supported in Win2k3?
Thnx,
-Peter