×
Kunena 5.1.3 Released (19 Aug 2018)

The Kunena team has announce the arrival of Kunena 5.1.3 [K 5.1.3] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a maintenance release.

Question long file Names

More
3 years 2 weeks ago #1 by karloshull
long file Names was created by karloshull
Hi,

When I am adding a file - the file name isn't showing. its displaying like

...jbv.pdf or ...nff.doc

How can I display the full file name?

Cheers
Karl


Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 2 weeks ago #2 by xillibit
Replied by xillibit on topic long file Names
Hello,

This isn't configurable it's hardcoded in some differents places

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
3 years 2 weeks ago #3 by sozzled
Replied by sozzled on topic long file Names
The problem has never occurred before in earlier versions of Kunena. I don't like the way that Kunena now truncates attachment filenames two the last three characters plus the filename extension. :(

In my opinion, this change is a design defect — no question about it.

Please Log in or Create an account to join the conversation.

More
3 years 2 weeks ago #4 by karloshull
Replied by karloshull on topic long file Names

xillibit wrote: Hello,

This isn't configurable it's hardcoded in some differents places


Would it be easy to edit the code?

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #5 by sozzled
Replied by sozzled on topic long file Names
Is this issue being addressed by the development team? :dry:
Last edit: 2 years 11 months ago by sozzled. Reason: Change subject

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #6 by xillibit
Replied by xillibit on topic long file Names
I had forgot this one, i will add to github

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: sozzled

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #7 by omri
Replied by omri on topic long file Names
xillibit, thank you.

Can you give me a clue where can I find this part of the code that handles the change of the filename?

I have a problem that utf8 characters are not shown in the link so i get no links at all if all the filename is in Hebrew.

Thanks,
Omri

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #8 by omri
Replied by omri on topic long file Names
So I decided to disable the shorten file names and it's also solved the problem I had with the missing characters in Hebrew.

in libraries/kunena/attachment/attachment.php

line 466:

replace: $output=substr($filename,0,$front).$filler.substr($filename,$len-$back,$back);
with: $output=$filename;

Omri
The following user(s) said Thank You: sozzled

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #9 by sozzled
Replied by sozzled on topic long file Names
This issue has not been included in GitHub as far as I can tell. If it has been listed as something to be looked at, what is the GitHub reference, please.

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #10 by 810

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.159 seconds