I just installed the latest FileField and ImageField modules on my test site (to test, of all things ;) when I found that the default file extension for an imagefield is a .txt file (i.e. 'txt' is placed in the 'Permitted upload file extensions' box by default). I don't think this makes sense for an imagefield and propose changing it to something like 'jpg gif png' instead...

CommentFileSizeAuthor
#3 imagefield_default_extensions.patch763 bytesquicksketch

Comments

libeco’s picture

I saw the same on a fresh test install locally...

quicksketch’s picture

Category: task » bug

Ah, shoot. I consolidated some duplicate code, which probably contained the default value for the ImageField. It's especially bad because ImageField will actually prevent you from saving a "txt" extension, since it only supports png, jpg, and gif.

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new763 bytes

Committed the attached patch.

Status: Fixed » Closed (fixed)

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