×
Blue Eagle 5 v1.6.2 has been Released for Kunena 5.2 (20 Jan 2021)

The Kunena team has announce the arrival of Kunena template Blue Eagle 5 v1.6.2 which is now available for download. This version addresses most of the issues that were discovered in development.

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with

Question attachment->getFilename() returns the "protected name"

More
2 weeks 4 days ago - 2 weeks 4 days ago #1 by robertvdh
I have enabled the option to protect the filenames in the configuration.
Now attachment->getFilename() returns the protected name and no longer the "real name". As a result the downloads all get a cryptic filename.
For now I have changed attachment.php in the libraries/kunena/attachment folder to return the real name.
I am using Kunena 5.2.1 with Blue Eagle 5 version 1.5.3.
Am I the only one that sees this ?

Robert
 
Last edit: 2 weeks 4 days ago by robertvdh.

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

More
2 weeks 3 days ago #2 by xillibit
Hello,

Protected means protects everything, so it's normal that the filename is converted is something with random values...

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
2 weeks 3 days ago #3 by robertvdh
Hello xillibit,
This must have changed recently.
I have always used this option.
The files on the webserver have a protected name. But in messages on the forum the original name was shown, and as a result you could also embed images in the message etc. Now embedding images is no longer possible because the protected names have no extension.
If it is needed then I can disable the "protected" setting. But will that show the original name for files that were uploaded when the protection was enabled ?

Robert

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

More
2 weeks 3 days ago #4 by rich
I've tested it. Embedding is not the problem, it works also without file extension. But now you can see an extract of the protected file name.
 
Attachments:

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

More
1 week 5 days ago #5 by xillibit
Hello,

I have just the change which has broken that, so the fix is here in developpement version of Kunena 5.2.2 : github.com/Kunena/Kunena-Forum/commit/7b...818c6d2d0f4ed119ee3a
 

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
1 week 4 days ago #6 by robertvdh

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

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