ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-dev
pear-dev
[PEAR-DEV] Patch to =?ISO-8859-1?Q?OOH=B4s?= form.php
by Markus Wolff other posts by this author
Oct 12 2002 5:38PM messages near this date
Re: [PEAR-DEV] Re: [PEAR] [ANNOUNCEMENT] XML_XSLT_Wrapper-0.2 (alpha) Released. | [PEAR-DEV] Re: [PEAR] [ANNOUNCEMENT] PEAR-1.0b1 (stable) Released.
Hi there,

I=B4ve noticed that the opening tag for a form generated by HTML_OOH_Form
lacks the "enctype" attribute when using fileupload elements. This way,
uploaded files are never sent correctly by the browser.

A small patch is included - I=B4ve added a new property that contains a
list of all elements that require the "enctype" attribute to be set. In
the addElement() method, this list is being checked and if the current
element matches one out of that list, a flag is being set that tells
getStart() to put the attribute into the form tag.

Ironically, the flag has always been there, but was never set.

Regards,
  Markus

--=20
Markus Wolff <wolff@[...].de> 
Attachments:
unknown1


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved