srs81 / CakePHP-AjaxMultiUpload

CakePHP 2 plugin to allow for easy multi-file upload with AJAX
Other
65 stars 33 forks source link

Notice (8): Undefined variable: str [APP\Plugin\AjaxMultiUpload\View\Helper\UploadHelper.php, line 49]] #51

Closed maungyehtunzaw closed 9 years ago

maungyehtunzaw commented 9 years ago

i got this error with integrate cakephp version 2.3.8 ..

nandosb commented 9 years ago

@maungyehtunzaw It ´s no related with your CakePHP version. It´s a development bug. This plugin was working fine until version 1.0.3.

Anyway, can someone else fix this this problem? Dropzone integration it´s not working.

Thanks

srs81 commented 9 years ago

Sorry, this should be fixed now - can you check with the latest version please?

srs81 commented 9 years ago

@nandosb - is your problem fixed now? Or is Dropzone not working?

nandosb commented 9 years ago

I´m affraid it still has a problem.

Check UploadHelper.php, around the line 78. I think you should change

Dropzone.options = { maxFilesize = $size }

for

Dropzone.options = { maxFilesize : $size }

and move the script bellow the

tag.

nandosb commented 9 years ago

@srs81 Please, check multi uploads too. When I tried to setup two upload fields, I got the following js error "Uncaught Error: Dropzone already attached."

Thanks

srs81 commented 9 years ago

Thanks for testing - just made those changes. Can you check again?

Let me check on the "Dropzone already attached" error.

srs81 commented 9 years ago

I believe this should be fixed now. Can you create a new issue for the "Dropzone already attached" error?