bestprotop / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

Bug Fix Syntax error, unrecognized expression: ]_wrap #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create form
2. Give the file input the name file[]
3. Browse to page

What is the expected output? 

The expected output is nothing (nothing has happened other than the
javascript processing)

What do you see instead?

uncaught exception: Syntax error, unrecognized expression: ]_wrap

What version of the plugin/jQuery are you using?
PLUGIN VERSION: 1.3.2
JQUERY VERSION: jQuery Multiple File Upload Plugin v1.46 - 2009-05-12

On what browser(s) or operating system?
BROWSER(S): Firefox

The bug is this:
At this point:
MultiFile.wrapID = MultiFile.instanceKey + '_wrap';  // Wrapper ID?

MultiFile.instanceKey #=> file[]

so when it gets to:

MultiFile.wrapper = $('#'+MultiFile.wrapID+'');

it is trying to select $('#file[]_wrap'); which is not a valid selector.

To fix it replace:

MultiFile.wrapID = MultiFile.instanceKey + '_wrap';  // Wrapper ID?

with:

MultiFile.wrapID = (MultiFile.instanceKey).replace('[]','')+'_wrap'; //
Wrapper ID?

Original issue reported on code.google.com by sean.sa...@gmail.com on 14 Aug 2009 at 4:40

GoogleCodeExporter commented 9 years ago
MultiFile.wrapID = (MultiFile.instanceKey).replace('[]','')+'_wrap'; //
Wrapper ID?

should be all on one line:

MultiFile.wrapID = (MultiFile.instanceKey).replace('[]','')+'_wrap'; //Wrapper 
ID?

darn text wrapping...

Original comment by sean.sa...@gmail.com on 14 Aug 2009 at 6:02

GoogleCodeExporter commented 9 years ago
The project has been dormant for over a year and many of the support requests 
have been resolved and/or are invalid. So we're going to archive them all, 
pending review.

If you're still having a problem with the plugin, please visit the project page 
and re-open the issue. We do apologize for any inconvenience this may cause, 
but please bear with us...  we'll be making improvements to the plugin and its 
documentation over the coming weeks.

Stay tuned; and thanks for your support!

The Fyneworks Team
http://twitter.com/fyneworks

Original comment by fyneworks on 26 Jan 2012 at 1:37