views:

619

answers:

1

Hi is there any problem with fire fox? I'm not able to get the file name using

fileupload.postedfile.filename in firefox. But the same thing working find in ie.

What is the problem?

Regards, Nagu

+2  A: 

What do you get? IIRC, Firefox sends the filename without path (IE sends full path); but that should still be enough to get a name. If you use Path.GetFileName(filename) you should have the same answer from either...

Marc Gravell
Path.GetFileName() ? is there any method like that?
Nagu
Er, yes? http://msdn.microsoft.com/en-us/library/system.io.path.getfilename.aspx
Marc Gravell