×
Blue Eagle 5 v1.5.3 has been Released (31 Mar 2020)

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

Question Why Kunena 4.x allows utf-8 characters in attachment filenames?

More
3 years 10 months ago #21 by baijianpeng
Today I tested with Kunena 5.0 RC4,which is the latest version. It still allows UTF-8 characters in attachments filenames !

There IS NOT any option in Kunena configuration to prevent this!

When will you implement this feature? In the final Kunena 5 stable?

www.joomlagate.com/

Chinese Joomla Users' Portal

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

More
3 years 10 months ago #22 by 810
its on our list for next rc.

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

More
3 years 10 months ago #23 by baijianpeng
OK. Thank you. I am looking forward to test that version.

www.joomlagate.com/

Chinese Joomla Users' Portal

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

More
3 years 10 months ago - 3 years 10 months ago #24 by xillibit
If we introduce an option like that in Kunena 5.0, your files already uploaded keep the utf8 characters in the filename so the issue will still happen

I'am thinking to add a tools instead an option to remove all utf8 characters in filename, think it will be better

I don't provide support by PM, because this can be useful for someone else.
Last edit: 3 years 10 months ago by xillibit.

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

More
3 years 10 months ago #25 by baijianpeng
I suggested "validation and reject" because it is more easier to implement. I don't want to put more work on your shoulders.

If you are willing to go further to handle both "formerly uploaded files" and "files will be uploaded later on", that will be great!

Thank you.

www.joomlagate.com/

Chinese Joomla Users' Portal

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

More
3 years 10 months ago #26 by baijianpeng
Today I tested with Kunena 5 RC5, on the attachment filename issue. Is seems that you had implemented some method in this version to "automatically convert the UTF-8 filename".

However, I also noticed that, the new method of conversion not only changed the "filename" part, but also changed the "extension name" part.

For example, I uploaded a file named in Chinese:

Kunena 帖子中站内链接 nofollow 问题.txt


Then I checked the file system via FTP, I found a new file in /media/kunena/attachments/62 folder, the filename is:

2996962656838a97af4c5f926fe6f1b0


Look, there is no ".txt" part in this new filename. So you will never recoganize it as TXT file if you check the file system via FTP, or a file manager in your web Control Panel, or the SSH terminal.

Why just keep the extension name there, make the filename as:

2996962656838a97af4c5f926fe6f1b0.txt


I think the latter is better.

Thank you.

www.joomlagate.com/

Chinese Joomla Users' Portal

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

More
3 years 10 months ago - 3 years 10 months ago #27 by 810
do you have enabled protected uploads? when you disabled you get: Kunenanofollow.txt

I got Kunenanofollow.txt on your txt file
Last edit: 3 years 10 months ago by 810.

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

More
3 years 10 months ago #28 by baijianpeng
Yes, I had enabled "Protect Attachment". When disabled, the file extension name was kept.

Thank you.

www.joomlagate.com/

Chinese Joomla Users' Portal

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

More
3 years 10 months ago #29 by 810
protected hides also the extension name, so nobody can steal the attachment

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.213 seconds