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!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | limited_file_extensions-2851581-2.patch | 661 bytes | heivoll |
Comments
Comment #2
heivoll commentedProbably too late for your usage, @capysara, but I encountered the same issue, and made a patch. This uses the default allowed extensions setting.
Comment #3
capysara commentedThis issue was on my back burner and forgotten. I'll try the patch and report back.
Thanks @heivoll!
Comment #4
capysara commentedThis is super great!! Thanks so much!
Comment #6
stijnstroobantsThanks for the useful patch! :-)
Added to the 7.x-1.2 release