I need more extensions to this field. I made a quickfix, but I this can turn into a patch, right?

function hook_form_file_entity_settings_form_alter(&$form, &$form_state) {
  
  $form['file_entity_default_allowed_extensions']['#maxlength'] = 256;
}

Comments

devin carlson’s picture

Title: Increase the maxlenght of file allowed size » Increase the maxlength of file allowed size
Version: 7.x-2.0-alpha2 » 7.x-2.x-dev
Component: User interface » Code
Status: Active » Needs review
StatusFileSize
new672 bytes

A patch to allow the default allowed file extensions textfield to allow an unlimited length string.

dave reid’s picture

Status: Needs review » Reviewed & tested by the community

Looks and works great.

devin carlson’s picture

Status: Reviewed & tested by the community » Fixed

Committed #1 to File entity 7.x-2.x.

Status: Fixed » Closed (fixed)

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

johan.gant’s picture

Issue summary: View changes
StatusFileSize
new640 bytes

The patch for this isn't in a current release tag (alpha2/3) and I'd rather not hop over to the dev branch on a live site, so I re-rolled against alpha2 so I can apply it via a make file. Feel free to ignore/incorporate in future as desired!

Cheers