filenames / extensions with file uploads
From: Lauchlan M (LMackinnon_at_Hotmail.com)
Date: 03/02/04
- Next message: Sarmad Aljazrawi: "ASP.net"
- Previous message: francois: "WebControl.BackColor"
- Next in thread: Martin Dechev: "Re: filenames / extensions with file uploads"
- Reply: Martin Dechev: "Re: filenames / extensions with file uploads"
- Reply: Eric Lawrence [MSFT]: "Re: filenames / extensions with file uploads"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Mar 2004 19:22:08 +1000
Hi
I'm doing a file upload and I get
//get the filename
string FullFileNameAndPath = fileDischargeFile.PostedFile.FileName;
This returns the full filepath, eg c:\folder\filename.ext
What I want to do is get the filename (as 'filename.ext') and the extension
(as '.ext') from this full path.
What are the best .net methods/namespaces to use for this?
Thanks
Lauchlan M
- Next message: Sarmad Aljazrawi: "ASP.net"
- Previous message: francois: "WebControl.BackColor"
- Next in thread: Martin Dechev: "Re: filenames / extensions with file uploads"
- Reply: Martin Dechev: "Re: filenames / extensions with file uploads"
- Reply: Eric Lawrence [MSFT]: "Re: filenames / extensions with file uploads"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|