Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 303597

Sometimes you want more than 128 chars of allowed file extensions

$
0
0

Problem/Motivation

In D8's core/modules/file/src/Plugin/Field/FieldType/FileItem.php and D7's modules/file/file.field.inc uses textfield's default '#maxlength' => 128. On Drupal.org, we want more than that, #1246118: Allow uploading of videos (screencasts) to d.o.

Before screenshot


Proposed resolution

Increase the file field widget allowed extensions setting input to 256.

After screenshot


Remaining tasks

Contributor tasks needed
TaskNovice task?Contributor instructionsComplete?
Add automated testsYesInstructions
Manually test the patch NoviceInstructions
Embed before and after screenshots in the issue summaryNoviceInstructions
Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standardsInstructions

User interface changes

API changes

Original report by @drumm

In D8's core/modules/file/src/Plugin/Field/FieldType/FileItem.php and D7's modules/file/file.field.inc uses textfield's default '#maxlength' => 128. On Drupal.org, we want more than that, #1246118: Allow uploading of videos (screencasts) to d.o.


Viewing all articles
Browse latest Browse all 303597

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>