[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [Bug 77382] New: form submit wrong with empty file upload
From:       Sven Carstens <s.carstens () gmx ! de>
Date:       2004-03-12 12:53:19
Message-ID: 20040312125319.20441.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=77382      
           Summary: form submit wrong with empty file upload
           Product: konqueror
           Version: 3.2.1
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konq-bugs kde org
        ReportedBy: s.carstens gmx de


Version:           3.2.1 (using KDE 3.2.1, SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-192-default

Consider simple HTML-example like this:

<form enctype="multipart/form-data" method="POST">
<input type="file" name="file">
<input type="submit">

If you press submit without selecting a file,
the HTTP-Request send to the server is wrong.
This happens also, when there are more fields in the form.
All form inputs following the file input don't get passed
to the server.

Sniffing with ethereal sees:
------------qEmlRaZBnRxTs1qsiXP8sQVyaxxjbxbP9MAbwkmh9hA2jyuPUKXMk0L\r\n
Content-Disposition: form-data; name="file"; filename=""\r\n
\r\r\n
------------qEmlRaZBnRxTs1qsiXP8sQVyaxxjbxbP9MAbwkmh9hA2jyuPUKXMk0L--\r\n

After the Content-Disposition there should be \r\n\r\n.
Notice missing \n.
This doesn't happen when a file is selected for upload.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic