YouTubeCFC and update to the CFHTTP Tag
For a while now the YouTubeCFC component has not been able to upload videos to YouTube. While it worked fine when initially released, some engineer at YouTube decided to tighten up some code some place and that change revealed a bug with ColdFusion and CFHTTP when doing multipart form posts.
To fix this bug, Adobe has released a hot fix that actually adds a new attribute to the cfhttp tag (great, the WACK is now out of date): multiparttype
Here is an example of it in use in my CFC:
<cfhttp url="#theurl#" method="post" result="result" multiparttype="related">
If you try to use the CFC without the hotfix, you will get an attribute validation error for the tag. The hotfix also includes a fix for ColdFusion 7. I want to give a big thank you to Adobe's Michael Collins and the other engineers who worked with me to get this corrected. (Well basically I complained, they fixed, and I tested, so the work was all them!)
The CFC had a bit of cleanup as well. I'm finally getting comfortable with the "Google way" of thinking when it comes to their APIs.
Comments
I installed the hotfix (cfadmin reported that the update was successful), copied in the new tablib (file date of taglib in the WEB-INF\cftags\META-INF directory is now 9/23/2008, as expected), restarted my CF server, restarted WAMP, and I'm still getting the following error while trying to run the test_embed.cfm included with the archive:
"The tag handler http does not have a setter for the attribute multipartType specified in the Tag Library Descriptor."
What am I doing wrong??
Thanks!
-Carl
The server I was testing the hotfix on wasn't yet updated to 8.0.1.
Updated to 8.0.1, and THEN ran the hotfix, and everything is perfect now.
Thanks!
-Carl "It must be getting late"
In particular I am getting the error :
The tag handler http does not have a setter for the attribute multipartType specified in the Tag Library Descriptor.
Does this mean I need to edit all existing uses of this tag to include the multipartType attribute with its value being form-data?
Thanks in advance.
Jordan
