Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Forum Module /

Discuss the Forum Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Javascript error when attaching files to forum posts.


Reply


2 Posts   572 Views

Avatar
HansR

Community Member, 140 Posts

6 December 2011 at 3:29pm

I'm getting the following javascript error with the first attempt to attach a file to a forum post:

An invalid or illegal string was specified
div.innerHTML = wrap[1] + elem + wrap[2];

This error occurs in line 4448 of jQuery.js. After this error, the second attempt to attach a file works, but not exactly the way that it's supposed to. Basically, the filename ends up in the filename entry box, and clicking post will upload it. However, multi-file attachment doesn't work.

Has anyone else encountered this before? More importantly, how can this problem be fixed? It occurs with the latest trunk version of the forum module, and was tested with Firefox.

Hans

Avatar
HansR

Community Member, 140 Posts

6 December 2011 at 3:37pm

Okay, a few minutes after posting the question, I have my answer. The version of jQuery.MultiFile.js in the forum module is old. Replacing it with the latest version fixes the problem. I'll be posting a bug ticket shortly.

Hans