ali3nado / CakePHP-JqueryFileUpload-Plugin

The JqueryFileUpload Plugin provides an easy-to-use feature jQuery-File-Upload in CakePHP2.x
7 stars 9 forks source link

Error Not Found #6

Open G00z opened 10 years ago

G00z commented 10 years ago

Hello, im using your plugin, but i have an issue, when i add files to upload, i can see the miniature correctly in preview, when i want upload the files i see this message:

error Not Found,

Need to change some path ?

For example my action is: /products/view in the function view is where i save the image in app/webroot/images

In my view.ctp i put this not found

echo $this->UploadScript->loadLibs(); echo $this->Html->scriptBlock(" $(function () { $('#fileupload').fileupload({ xhrFields : {withCredentials: true}, url : '/admin/products/view/' //Set your action }); });
");

I'm doing wrong? I hope you can help.

Thanks.

ali3nado commented 10 years ago

Você deu permissão de escrita e leitura no diretório onde está salvando as imagens? Veja se o upload funcionou e de uma olhada no arquivo de log do Cake.

G00z commented 10 years ago

Hello, yes, im in a localhost, and my directory names has permissions correctly to save images, i saw my error was in the url: /admin/products/view/ WRONG

url: https;//localhost/my_project/admin/products/view/<?php echo $product['Product']['id']?> CORRRECT.

But now i have a new issue, SyntaxError: JSON.parse.

Thank you for you response.