I am a beginner to ASP so bear with me.
I have a simple web page, which allows the user to upload a file (of any
extension type including .img) from their computer to a fileserver. I want
to use the FileSystemObject to do this and not use any third party
products. How do I do this?I want the uploaded file to be put in a folder
that is the same as the value of the session no.
Here is my simple code so far
<HTML>
<head>
<TITLE>File Upload</TITLE>
</HEAD>
<body>
<center>
</form>
<form action="insert.asp" method="get" enctype="multipart/form-data"
id=form1 name=form1><BR>
<p>Please select a file to attach if desired</p>
<p><b>File: </b><input type="file" style="width: 300;"
name="thefile"></p>
<input type="submit" value="Upload" id=submit2 name=submit2></form>
</center>
<%
Dim strfile, path, strFilename
Set fso = Server.CreateObject("Scripting.FileSystemObject")
strFilename = Session("cabSN")
path = "\\fileserver\UploadedFiles\" & strFilename & "\"
%>
</body>
</html>