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.

REF:
http://www.w3schools.com/TAGS/tag_input.asp

Comments

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

can you please submit a patch?

dopry’s picture

Status: Postponed (maintainer needs more info) » Fixed

fixed in 5.x-2.x and 6.x-3.x HEADS.

tmcw’s picture

Isn'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)$/gi

Which is obviously not going to fly with regular expression rules - it should be

/\.(mp3|m4a)$/gi

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.