Active
Project:
Mass Contact
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2012 at 22:00 UTC
Updated:
8 Aug 2012 at 21:56 UTC
I've tried to modify the mass contact attachment file field to allow docx files, but is does not seem to work.
It states that only theses (standard drupal?) files are allowed: jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp
I dont understand where these settings come from. In D6 you could edit standard file-types, but this field is missing in D7 and replaced by the file-field setting.
Are there other places to edit allowed attached files? any good solution? is this a bug?
-thanks
Comments
Comment #1
oadaeh commentedThis is a "feature" of Drupal 7. See the description of $validators on http://api.drupal.org/api/drupal/includes!file.inc/function/file_save_up....
For a quick and dirty fix, you can change line 927 of mass_contact.page.inc from
to
keeping in mind that this allows anyone to send any type of file.
I guess I should add an administrative UI to allow the sysadmin to change this.
Comment #2
plastikkposen commentedUI way to go, but meanwhile thanks a lot for the dirty fix!
Comment #2.0
plastikkposen commentedadding text