error with upload images in Attachments using Croogo and cakephp

Hope someone can help me!

I'm trying to upload an image in Attachments and insert image in a page using croogo.

And when I upload i keep getting the same error message:

Security Error The requested address was not found on this server. Request blackholed due to "auth" violation.

The images are saved in the uploads folder but i cant get them to display on the page.


Just add some line of code in your controller

public function afterFilter() {
        if (($this->request->isPost() || $this->request->isPut()) && empty($_POST) && empty($_FILES)) {
            $this->Security->csrfCheck = false;

OR May be you forgot to define multipart in your form.

echo $this->Form->create('Something', array( 'type' => 'file')); 

Hope this help you.

Need Your Help

Set dropdown default based on separate variable in Angular

javascript angularjs angularjs-ng-repeat default angularjs-filter

I have a drop down that has a few dependencies. I have managed to populate the list from a data set and filter it properly. The next step is choosing the default. This is complicated because the de...

Setting new value for an attribute using jQuery

javascript jquery html attr

I am trying to set a new vale of a custom attribute of a div using attr(). I found out it can be done using .attr( attributeName, value ), but when I try it it's not working.