[Mono-bugs] [Bug 74771][Maj] Changed - System.Path.IO is no longer handling Windows like paths.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 30 Apr 2005 22:14:33 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by rlyon@novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74771

--- shadow/74771	2005-04-30 17:53:58.000000000 -0400
+++ shadow/74771.tmp.24666	2005-04-30 22:14:33.000000000 -0400
@@ -75,6 +75,19 @@
 >include any web application that uses an HTML Form with a file input
        >type), will have to be modified to work with Mono.
 
 What? You mean <input type="file"....> ? And having a 'name' there
 that includes a full path and using that as a path instead of a
 variable name? 
+
+------- Additional Comments From rlyon@novell.com  2005-04-30 22:14 -------
+Yes to the input tag, but the file name is the full path of the file 
+added to the multi-part form by the browser. This surfaces on the 
+server side in a HttpPostedFile.FileName property - "Gets the fully-
+qualified name of the file on the client's computer (for 
+example 'C:\MyFiles\Test.txt')." See 
+http://msdn.microsoft.com/library/default.asp?url=/library/en-
+us/cpref/html/frlrfsystemwebhttppostedfileclassfilenametopic.asp
+
+I used to be able to use Path.GetFileName() with mod-mono-server and 
+it would handle a path from a Linux client or a Windows client. I 
+will have to do my own parsing here and so would any one else.