chili!upload only uploads filepath from client
Hi, i have a very frustrating problem with chili!upload.
i use the following code to my upload-script:
<%if request.querystring("s") = "" then%>
<form action="upload.asp?s=2" method="post" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" Value="Upload">
</form>
<%else
response.Expires = 0
Set fbase = Server.CreateObject("Chili.Upload.1")
fbase.SizeLimit = 1000000
fbase.SaveToFile(Server.mapPath("/") & "/upload/" & fbase.SourceFileName)
%>
<h1>Success</h1>
Filen <%=fbase.SourceFileName%> blev uploadet til serveren
Den fylder <%=fbase.FileSize%> bytes.
<%end if%>
But 80% of the time i try upload a file, the script fails. When i then go to my directory with should contain the file, all i find is a mysterious file, with a name like "c:\documents and settings\username\pictures\filename.jpg". the filesize is what it should be, but the filename is kind of weird, as it is the full path to the file uploaded on the clients computer.
what can i do to avoid this problem?

