Here's a quick bugfix for those of you who don't plan to upgrade to version 2.0.0 right away (because it'll break your apps). If you upload a file, you'll get an error on any Flickr methods you try to call after this. This is because the HTTP_Request object changes the post encoding when you upload a file and there's no systematic way to change it back. You can, however, throw the switch manually. Just stick the following code before the return statement in all of your upload functions in phpFlickr
$this->req->_requestHeaders['content-type'] = 'application/x-www-form-urlencoded';
unset($this->req->_postFiles['photo']);
One Response
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
Continuing the Discussion