[Mono-bugs] [Bug 588944] New: FileUpload control doesn't work properly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 17 05:00:18 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=588944

http://bugzilla.novell.com/show_bug.cgi?id=588944#c0


           Summary: FileUpload control doesn't work properly
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 1.2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: haker-kirik at mail.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=348830)
 --> (http://bugzilla.novell.com/attachment.cgi?id=348830)
Patch that fixes this issue.

User-Agent:       Opera/9.80 (X11; Linux i686; U; en) Presto/2.2.15
Version/10.10

After getting uploaded data using property FileBytes of FileUpload class,
position of data stream doesn't set to zero. In MS.NET after using FileBytes
property position of stream set to zero.

Reproducible: Always

Steps to Reproduce:
1.Create a website with FileUpload control on it.
2.Put a button on the website, create OnClick action of it. Action must include
a code that using FileBytes property of FileUpload control and then read the
position of FileUpload data stream. Then set a breakpoint on this action.
3.Build and run the website in debug mode (F5).
4.Use FileUpload control on a web page to upload some file on a web server.
5.Press the button on the web page to execute an action OnClick and debug the
issue.
6.In the OnClick action look at the position of the FileUpload data stream.
7.It must be zero after using FileBytes property, but it's not.
Actual Results:  
The position of the FileUpload data stream after using FileBytes property is
not zero.

Expected Results:  
The position of the FileUpload data stream after using FileBytes property must
be zero.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list