I, that is to say, user number 1 have created a node and defined the author to be user number 2. I looks like I cannot upload images using this module for this user in the node edit page.

Any ideas ?!

Wonderful work by the way!

CommentFileSizeAuthor
#3 utf.patch1.61 KBgease
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

W.M.’s picture

Sorry mates. It looks like the problem is browser related. I have experienced the problem (which may have nothing with Drupal users) in FireFox. The problem cannot be replicated in Google Chrome. But unfortunately, Chrome has its own problems.

I use the latest CKeditor. I suspect that TinyMCE does not show the same problem.

Which is the best browser to administrate a Drupal site, you think ?!

W.M.’s picture

Title: It looks like user number 1 (Administrator) cannot upload images for user number 2 » Does not work if node's title or author's name are written in non-latin script (e.g. Arabic letters)

The issue has nothing to do with Admin vs other user accounts but it looks like it concerns languages and letters (therefore I have changed the issue's title). If the node's author is written in Arabic it does not work (I mean, no reaction i.e. no uploading upon dragging and dropping in editor, nothing happens). At the same time, if the node's title is written in Arabic (while author's name in English), it does not work either.

If all fields are in English but the Drupal UI is in Arabic (RTL), it still does not work. It works only if the UI is LTR, English and all fields are in English language.

I love this module but it looks like I can use it, meanwhile, only on my English language sites.

I will happily provide feedback (and testing results) for any suggested patches / ideas.

Thanks. I wish you the best.

gease’s picture

Status: Active » Patch (to be ported)
Issue tags: +Firefox, +ckeditor, +multibyte
FileSize
1.61 KB

Hi,
I really liked this module, but I had hard time to make it work.
I came up with a patch that fixes (hopefully) 2 issues.

First, with CKEditor in any browser there was an error like "CKEDITOR.instances[field].document is undefined" and after moving an image into a textarea or imagefield, the browser just went off the site and displayed an image like a local file.

Second, in firefox any non-latin (multibyte) letters are really a crime, because the module calls xhr.sendAsBinary to send form to the server, and this method doesn't accept anything of the multibyte. These letters may stem from the interface (thanslation for "Upload", eg), or be just values of the content fields. So I made a workaround to send empty strings instead of any potentially dangerous form values.

The patch is against current dev.

petsagouris’s picture

Status: Patch (to be ported) » Needs review