2amigos / yii2-ckeditor-widget

CKEditor WYSIWYG widget for Yii2.
https://2amigos.us/open-source/ckeditor-widget
Other
172 stars 112 forks source link

Bad Request (#400) - Unable to verify your data submission #68

Closed mahsa92 closed 7 years ago

mahsa92 commented 8 years ago

Hi! I have a problem when i want to add a file and an image to a text with ckeditor. It uploads file correctly but when i want to upload my image, I get bad request error. I traced the code and found that registerCsrfImageUploadHandler function runs just once and it doesn't run in uploading image. Whats the problem? How I can fix it?

nirvana-msu commented 8 years ago

The extension currently does not deal with multiple widgets appropriately. The code snippet in my post here should solve your problem.

tonydspaniard commented 7 years ago

@mahsa92 this was already solved: https://github.com/2amigos/yii2-ckeditor-widget/pull/72