Dear IPixel,
Please refer to the following highlighted code, it will save uploaded files as your original file name.
Solution 1:
<% @ Language="VBScript" %>
<!-- #include file="aspuploader/include_aspuploader.asp" -->
<html>
<body>
<form id="form1" method="POST">
<%
Dim uploader
Set uploader=new AspUploader
uploader.Name="myuploader"
uploader.SaveDirectory="/myfolder"
uploader.Render()
%>
</form>
</body>
</html>
Solution 2:
<%@ Language="VBScript" %>
<!-- #include file="aspuploader/include_aspuploader.asp" -->
<html>
<head>
</head>
<body>
<form id="form1" method="POST">
<%
Dim uploader
Set uploader=new AspUploader
uploader.Name="myuploader"
uploader.Render()
%>
</form>
<%
If Request.Form("myuploader")&""<>"" Then
Dim mvcfile
Set mvcfile=uploader.GetUploadedFile(Request.Form("myuploader"))
targetfilepath= "savefiles/myprefix_" & mvcfile.FileName
mvcfile.MoveTo( server.mappath(targetfilepath))
Response.Write("<div style='font-family:Fixedsys'>")
Response.Write("Uploaded File")
Response.Write("<br/><br/>FileName: ")
Response.Write(mvcfile.FileName)
Response.Write("<br/>FileSize: ")
Response.Write(mvcfile.FileSize)
' Response.Write("<br/>FilePath: ")
' Response.Write(mvcfile.FilePath)
Response.Write("</div>")
End If
%>
</body>
</html>
Thank you for asking