Link to home
Start Free TrialLog in
Avatar of Jason Livengood
Jason LivengoodFlag for United States of America

asked on

ASP.NET File Upload Control Question

This seems really simple. But yet I must ask ... I am using ASP.Net FileUpload control. How to get just the file name of the uploaded file ? Am currently using  

string fileName = FileUpload1.PostedFile.FileName

This returns the full path plus the filename  from my client machine. (Ex C:\User\Desktop\myfile.txt)  Any advice on how to get just the file name (myfile.txt) would be most appreciated
ASKER CERTIFIED SOLUTION
Avatar of Paulmc999
Paulmc999

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jason Livengood

ASKER

Thanks