Hi, I'm not sure if this question is too basic but I'm having difficult
deciding which things sure be on the server vs. the client side.
Here goes,
I've got a webpage that displays the contents of a folder. I'm trying to
implement an upload function. Basically I've got a file field and a
button and when you click on the button it uploads the file to the
server. I've made sure that the server is allowing scripting and has
write access but I keep getting "Automation Server can't create object".
I managed to get it to work locally, reading and writing to the same
system but when I implement it, I get this error.
Here's my code so far...
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function button1_onclick() {
var fs, file, s;
fs = new ActiveXObject("Scripting.FileSystemObject");
file = fs.GetFile(file1.value);
file.copy("backup.txt");
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<INPUT id=file1 type=file name=file1>
<INPUT id=button1 type=button value=Upload name=button1
LANGUAGE=javascript onclick="return button1_onclick()">
</BODY>
</HTML>
Thanks for any help,
- Mike