This sounds exactly like what I was looking for. However, I'm not sure if it's user error or a bug, but the upload doesn't respect my default file settings for allowed extensions (/admin/config/media/file-settings). I get this message:

The specified file file.ics could not be uploaded. Only files with the following extensions are allowed: jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp.

Is it limited to those extensions? Or is possible there is some other setting that's interfering?

Otherwise, this module works great with the listed extensions. Thanks!

CommentFileSizeAuthor
#2 limited_file_extensions-2851581-2.patch661 bytesheivoll

Comments

capysara created an issue. See original summary.

heivoll’s picture

StatusFileSize
new661 bytes

Probably too late for your usage, @capysara, but I encountered the same issue, and made a patch. This uses the default allowed extensions setting.

capysara’s picture

This issue was on my back burner and forgotten. I'll try the patch and report back.

Thanks @heivoll!

capysara’s picture

This is super great!! Thanks so much!

stijnstroobants’s picture

Status: Active » Fixed

Thanks for the useful patch! :-)
Added to the 7.x-1.2 release

Status: Fixed » Closed (fixed)

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