elabx

Show full name of files in file field.

Recommended Posts

Does anyone know if it' s possible for file field to show the uploaded files whole names, and not abbreviate it with three dots. 

Share this post


Link to post
Share on other sites

I did find this topic: 

@Robin S provided a hook for site/ready.php

$wire->addHookBefore('InputfieldFile::render', function(HookEvent $event) {
    $inputfield = $event->object;
    $inputfield->noShortName = true;
});

 

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

AOS also has this tweak: https://github.com/rolandtoth/AdminOnSteroids/wiki/FileFieldTweaks

Quote

Disable filename truncation for File fields: filenames displayed are cut to 20 characters by default. This tweak removes this limitation and shows the full name. If enabled, the delete button is not positioned to the right but right after the filename to avoid display issues when the filename spans to multiple rows.

 

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.