[Mono-bugs] [Bug 74989][Nor] New - HtmlInputFile "maxlenght" value assigned wrongly to "accept" attribute when running input file on server-side

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 18 10:49:50 EDT 2005


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 barbara at idealnet.com.

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

--- shadow/74989	2005-05-18 10:49:50.000000000 -0400
+++ shadow/74989.tmp.26559	2005-05-18 10:49:50.000000000 -0400
@@ -0,0 +1,69 @@
+Bug#: 74989
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: tested on both RH9 and ubuntu warty
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: barbara at idealnet.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: HtmlInputFile "maxlenght" value assigned wrongly to "accept" attribute when running input file on server-side
+
+Description of Problem:
+When the standard HTML control <input file= ...> is running as server 
+control (by adding runat="server" tag), the "maxlength" attribute gets 
+wrongly assigned to the "accept" attribute of this control. 
+
+Steps to reproduce the problem:
+1. create an aspx file
+2. include <input name="inputSomething" type="file" size="50" 
+maxlength="100000" accept="text/*" runat="server"> in that file
+3. browse to the file and look at the page's source code
+
+Actual Results:
+<input name="_ctrl0a" type="file" accept="100000" size="50" />
+maxlength's value was assigned to accept, while the maxlength attribute 
+isn't even there
+
+Expected Results:
+<input name="_ctl0" type="file" size="50" maxlength="100000" 
+accept="text/*" />
+
+How often does this happen? 
+Every time
+
+Additional Information:
+
+tested on red hat 9 with mono/mod_mono 1.0.5 apache 2.0.49
+and on ubuntu linux with xsp 1.0.9
+
+file to test:
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+       "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
+<title>file-Upload test</title>
+</head>
+<body>
+
+<h1>upload something</h1>
+
+<form action="input_file.htm" enctype="multipart/form-data">
+<p>
+search text file (txt, html etc.):<br>
+
+<input name="_ctl0" type="file" size="50" maxlength="100000" 
+accept="text/*" />
+</p>
+</form>
+
+</body>
+</html>


More information about the mono-bugs mailing list