Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASPUpload V 2.x - support for filename property?

Status
Not open for further replies.

jonohara

Technical User
Mar 26, 2000
53
GB
It seems that this version doesn't support the filename property (my ISP is sluggish about upgrading to v3.0!). Is there any other way of extracting the filename to upload to a database?

Thanks
 
I use AspUpload Version 2.0 and I get the filename using the ExtractFileName() method.

Code:
var upload = Server.CreateObject("Persits.Upload.1");
var file_name;
var saveFolder = "e:\\a_web_site_pathname\\exhibits"

upload.save(saveFolder);

new Enumerator(upload.files);

file_name = upload.files("form_field_name").extractFileName();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top