UserFilename Property |
![]() |
| Object: | SoftArtisans.FileUp |
| Syntax: | UserFilename |
| Type: | String |
| Read/Write: | Read Only |
| Description: |
This property contains the name on the user's
hard disk, including path, of the file that was uploaded. |
... The file you uploaded was <%=upl.UserFilename%>. ...
<% Set upl = Server.CreateObject("SoftArtisans.FileUp") '--- '--- Set the default path to store uploaded files. '--- This should be set immediately after creating an instance. '--- upl.Path = "c:\myuploads" '--- '--- Save the uploaded file with the same name as the user's file '--- (assuming the user is Windows-based). '--- NewFileName = Mid(upl.UserFilename, InstrRev(upl.UserFilename, "\") + 1) upl.SaveAs NewFileName ... %>