302 error in CakePHP with SWFUpload

I encountered this issue in one of my recent projects.

Basically I use SWFUpload to post files to a CakePHP controller. It was working beautifully, until I inadvertently removed 1 (yes, just one) line of code in beforeFilter():

$this->Auth->allow("swfupload");

I was using the Auth component, and without the line above to allow “not logged in” access to the controller action, then we have a problem.

Hope this helps somebody.

Advertisements

5 thoughts on “302 error in CakePHP with SWFUpload

    1. Haha. CodeIgniter is a competent framework for small (< 10 objects) systems. Any larger, and it gets difficult to retrieve data + associations in a succinct way! :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s