Closed (fixed)
Project:
ImageField
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2008 at 12:04 UTC
Updated:
17 Aug 2008 at 18:05 UTC
I ran into a problem with Opera 9.5. I could not upload any files using image fields.
What I found was in _imagefield_widget_form() the file form item is created with an attribute called accept that lists allowed file extensions.
This list is separated using pipe characters and it should be comma separated.
When I changed it to use commas Opera started to work.
Comments
Comment #1
dopry commentedcan you please submit a patch?
Comment #2
dopry commentedfixed in 5.x-2.x and 6.x-3.x HEADS.
Comment #3
tmcw commentedIsn't this breaking in Firefox for anyone? The regular expression
v = new RegExp('\\.('+(this.accept?this.accept:'')+')$','gi');on line 14 of fieldfield.js will end up with a regex like
/\.(mp3,m4a)$/giWhich is obviously not going to fly with regular expression rules - it should be
/\.(mp3|m4a)$/giComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.