Hi there,
The following:
I need to store the location of an uploaded file in a database. I access the FileName property of the uploaded file as such:
- Dim mvcfile
- Set mvcfile=uploader.GetUploadedFile(Request.Form("uploader"))
- Response.Write mvcfile.FileName
The problem with this is however that this property contains the
original name of the file, and not the name of the file after is has been persisted to the location as set in the SaveDirectory property. No problem in case of unique uploads.
However, in case of a duplicate upload the file in the SaveDirectory location gets renamed by the component. A timestamp is appended to the file name. The FileName property still contains the original name though.
Obviously I need the name of the persisted file. How can I access this?
Thanks and regards,
Nico