Opload af filer til Access database
På job bruger vi smartupload, som fungerer perfekt. Min private internetudbyder bruger SoftArtisans File Manager.(http://www.softartisans.com/). Er der nogle der kender til dette.
Min upload.asp fil ser sådan ud :
<%@ Language=VBScript %>
<% Session.timeout = 600
Dim mySmartUpload, ServerPath
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.Upload
Set fs=Server.CreateObject("Scripting.FileSystemObject")
set fs=nothing
set f=nothing
ServerPath = "UploadImages/"
mySmartUpload.Files.Item(1).SaveAs(ServerPath & lcase(mySmartUpload.Files.Item(1).FileName)) %>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8858-1">
<title>Document Title</title>
</head>
<body>
<p> </p><p> </p>
<p align="center">
Filen <b><%= lcase(mySmartUpload.Files.Item(1).FileName) %></b> er nu uploadet</p>
<p> </p>
<p align="center">
<a href="#" onClick="window.close()">Luk vinduet</a>
</p>
</body>
</html>
Hvad skal der til før det virker ?
