TwistedInteractive / ckeditor

Symphony CMS extension that provides the CKEditor WYSIWYG editor for text fields.
http://symphony-cms.com/download/extensions/view/35082/
Other
19 stars 24 forks source link

Error when uploading new file via filebrowser #39

Open andrewminton opened 10 years ago

andrewminton commented 10 years ago

Not sure what's happening under the hood here but I think there is an issue with the AjaxForm function.. I tried to upload a simple image and get this error after the ajax request was attempted/triggered:

Image /​workspace/[​object ​File]​ The file uploaded is no longer available. Please check that it exists, and is readable.

I think this is related to the path change in the upload field again... maybe the data object no longer contains the info we need in the response callback??

andrewminton commented 10 years ago

I've submitted a pull request which fixes the creation of new entries via filebrowser issue: https://github.com/TwistedInteractive/ckeditor/pull/40

Seems we needed the enctype="multipart/form-data" in the buildForm function within https://github.com/andrewminton/ckeditor/blob/integration/assets/filebrowser.js#L67

andrewminton commented 10 years ago

Closed issue accidentally, even though fix is on my fork. Would still like to confirm the fix on this, the orig of the code.

msegers commented 10 years ago

Seems Like I'm having exact the same issue. I'll see if I can use your fix aswell.