Konqueror and enctype="multipart/form-data"
Guten Abend. After spending too much time trying to understand why the STX_Document product works perfectly with Netscape but doesn't with Konqueror, I found this: If you use a form (in this case: in the edit_form in this product) with enctype="multipart/form-data", using Konqueror creates an attribute (in this case: uploaded_body) with a single linefeed character for an empty file input, using Netscape the attribute is empty. This only happens when using enctype="multipart/form-data". It has already been reported to the KDE Bug Tracking System. Cheers, Nils
I don't think that is the problem. I have many pages that use that and work perfectly in konqueror. I have version 2.1.1 of konqueror if yours is lower then that it might have been fixed in that version. I have used STX_Document with no problems. I also have some custom forms that have many files, images, textareas that work correctly in konqueror. Try checking that edit page against validator.w3.org it could be that something is wrong with the newest STX_Document which I have not used in a while since I integrated STX capability into some of my own products. Designing the webpages of tomorrow http://webme-eng.com Designing the MMORPGS of tomorrow http://worldforge.org On Sun, 13 May 2001, Nils Kassube wrote:
Guten Abend.
After spending too much time trying to understand why the STX_Document product works perfectly with Netscape but doesn't with Konqueror, I found this:
If you use a form (in this case: in the edit_form in this product) with enctype="multipart/form-data", using Konqueror creates an attribute (in this case: uploaded_body) with a single linefeed character for an empty file input, using Netscape the attribute is empty. This only happens when using enctype="multipart/form-data".
It has already been reported to the KDE Bug Tracking System.
Cheers, Nils
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
* kosh@aesaeion.com <kosh@aesaeion.com> [2001-05-13 15:05]:
I don't think that is the problem. I have many pages that use that and work perfectly in konqueror. I have version 2.1.1 of konqueror if yours is
I use 2.1.1, too. The problem is mentioned in the KDE Bug Tracking database: http://bugs.kde.org/db/25/25035.html http://bugs.kde.org/db/22/22205.html (I remember getting an LF, not the CR mentioned in report. Could this be caused by ZPublisher, is the author of the bug report wrong or am I stupid? [If I'm stupid, it probably will not be a good idea to mention this unfortunate fact. I'm a German. I will invade (small) countries when I'm in a bad mood.]) The details: The "edit" method in the STX_Document product uses an attribute called body_uploaded to detect if the body_stx should be replaced by the content of the file. Using Konqueror always renders body_uploaded true, although the file variable should be empty. Removing the enctype attribute from the form tag in "edit_form" solved the issue. It's a bug, trust me :-) Cheers, Nils
Ah I found it. In my python product I found strange things happening with files also at some point but didn't know it was a konqueror bug. In the code I check for if the content has more then a few characters in it. So it appears I have coded around that bug for now. Hopefully it will be fixed in kde 2.2 or a patch will be issued before then. Amazing how well forms work in all the different browsers when you code around all their various issues in the python code. :) Designing the webpages of tomorrow http://webme-eng.com Designing the MMORPGS of tomorrow http://worldforge.org On Sun, 13 May 2001, Nils Kassube wrote:
* kosh@aesaeion.com <kosh@aesaeion.com> [2001-05-13 15:05]:
I don't think that is the problem. I have many pages that use that and work perfectly in konqueror. I have version 2.1.1 of konqueror if yours is
I use 2.1.1, too. The problem is mentioned in the KDE Bug Tracking database:
http://bugs.kde.org/db/25/25035.html http://bugs.kde.org/db/22/22205.html
(I remember getting an LF, not the CR mentioned in report. Could this be caused by ZPublisher, is the author of the bug report wrong or am I stupid? [If I'm stupid, it probably will not be a good idea to mention this unfortunate fact. I'm a German. I will invade (small) countries when I'm in a bad mood.])
The details:
The "edit" method in the STX_Document product uses an attribute called body_uploaded to detect if the body_stx should be replaced by the content of the file. Using Konqueror always renders body_uploaded true, although the file variable should be empty.
Removing the enctype attribute from the form tag in "edit_form" solved the issue.
It's a bug, trust me :-)
Cheers, Nils
kosh@aesaeion.com <kosh@aesaeion.com> [2001-05-13 15:05]:
I don't think that is the problem. I have many pages that use that and work perfectly in konqueror. I have version 2.1.1 of konqueror if yours is
I use 2.1.1, too. The problem is mentioned in the KDE Bug Tracking database: http://bugs.kde.org/db/25/25035.html http://bugs.kde.org/db/22/22205.html (I remember getting an LF, not the CR mentioned in report. Could this be caused by ZPublisher, is the author of the bug report wrong or am I stupid? [If I'm stupid, it probably will not be a good idea to mention this unfortunate fact. I'm a German. I will invade (small) countries when I'm in a bad mood.]) The details: The "edit" method in the STX_Document product uses an attribute called body_uploaded to detect if the body_stx should be replaced by the content of the file. Using Konqueror always renders body_uploaded true, although the file variable should be empty. Removing the enctype attribute from the form tag in "edit_form" solved the issue. It's a bug, trust me :-) Cheers, Nils
Oops. I must have deleted the wrong file in my Postfix queue. This duplicate should never survi^H^Hfaced here. Innocently-looking'ly yours, Nils
participants (3)
-
kosh@aesaeion.com -
Nils Kassube -
Nils Kassube