Skip to content


Bug Fix: Post-Upload Problems

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']);

Posted in Bug Fixes.


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. FURIOUS nads! linked to this post on September 29, 2006

    Friday FURIOUS Flickr Fun…

    Re-did the main page of The One True b!X to display a 5×5 grib of square thumbnails for the 25 most recent photos I've uploaded to Flickr….



Some HTML is OK

or, reply to this post via trackback.