hi there

this bit of code is part of aspupload how do i get the upload.files("ONLYFILES").Path which gives you location of where the file has been put on the server after uploading to just give me the file name. as aspupload sometimes renames files in cases of duplicate files.

<%
Response.Write Upload.Files("ONLYFILE").Path & " &nbsp;&nbsp;&nbsp;(" & upload.Files("onlyfile").Size & " bytes)<BR>"
%>

i want this bit of code to just give the name of the file and the size of the file.

I have tried changing it to this but it didn't work

<%
Response.Write Upload.Files("ONLYFILE").Name & " &nbsp;&nbsp;&nbsp;(" & upload.Files("onlyfile").Size & " bytes)<BR>"
%>



Can anyone help me out.