I got this ASP code a few days ago. but it is for usage on the Internet server itself. We don't host our own WEB site.
Is there a way to modify this so it will save to our WEB site folder and not the WEB hosts C:\drive ????
Her is the link and the code below
----------------------
<%
Dim MyUploader
Set MyUploader = New FileUploader
%>
<%
MyUploader.Upload()
%>
<%
MyUploader()
%>
<%
Dim File
For Each File In MyUploader.Files.Items
Response.Write "File Name:" & File.FileName
Response.Write "File Size:" & File.FileSize
Response.Write "File Type:" & File.ContentType
Next
%>
<%
Response.Write "File Name:" & MyUploader.Files("file1".FileName
Response.Write "File Size:" & MyUploader.Files("file1".FileSize
Response.Write "File Type:" & MyUploader.Files("file1".ContentType
%>
<%
Dim File
For Each File In MyUploader.Files.Items
File.SaveToDisk "C:\UploadedFiles"
Next
%>
<%
Dim RS
Dim File
Set RS = Server.CreateObject("ADODB.Recordset"
RS.Open "MyUploadTable", "CONNECT STRING OR ADO.Connection", 2, 2
For Each File In MyUploader.Files.Items
RS.AddNew
RS("filename" = File.FileName
RS("filesize" = File.FileSize
RS("contenttype" = File.ContentType
File.SaveToDatabase RS("filedata"
RS.Update
Next
RS.Close
%>
DougP, MCP
Visit my WEB site to see how Bar-codes can help you be more productive
Is there a way to modify this so it will save to our WEB site folder and not the WEB hosts C:\drive ????
Her is the link and the code below
----------------------
<%
Dim MyUploader
Set MyUploader = New FileUploader
%>
<%
MyUploader.Upload()
%>
<%
MyUploader()
%>
<%
Dim File
For Each File In MyUploader.Files.Items
Response.Write "File Name:" & File.FileName
Response.Write "File Size:" & File.FileSize
Response.Write "File Type:" & File.ContentType
Next
%>
<%
Response.Write "File Name:" & MyUploader.Files("file1".FileName
Response.Write "File Size:" & MyUploader.Files("file1".FileSize
Response.Write "File Type:" & MyUploader.Files("file1".ContentType
%>
<%
Dim File
For Each File In MyUploader.Files.Items
File.SaveToDisk "C:\UploadedFiles"
Next
%>
<%
Dim RS
Dim File
Set RS = Server.CreateObject("ADODB.Recordset"
RS.Open "MyUploadTable", "CONNECT STRING OR ADO.Connection", 2, 2
For Each File In MyUploader.Files.Items
RS.AddNew
RS("filename" = File.FileName
RS("filesize" = File.FileSize
RS("contenttype" = File.ContentType
File.SaveToDatabase RS("filedata"
RS.Update
Next
RS.Close
%>
DougP, MCP
Visit my WEB site to see how Bar-codes can help you be more productive