- Posts: 230
- Thank you received: 5
Kunena 6.2.6 released
The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2
For a quick response, please give us as much information that helps us to understand the problem.
Please read first What information should I include when I ask for help (including how to post my configuration report)? |
- Kunena 1.7 product-related issues only; and
- when your Kunena forum does not work.
- to request adding to or removing from the standard features of Kunena;
- if your question is of a commonly asked "how to" nature;
- if you are not using the latest stable release of Kunena; or
- ▪ general Joomla or website adminstration matters
Please read the guides posted as sticky topics in this category.
Also refer to the FAQs menu tab above for frequently asked questions.
Note: Support for, and all questions relating to, K 1.7 will cease on 31 August 2012. Our advice is, if you are having problems with K 1.7, to upgrade to K 2.x as soon as practicable,
Important Automatically rename attachment if filename has no English characters
- baijianpeng
- Topic Author
- Offline
- Premium Member
Well, a long time passed and Kunena v1.6.3 released, but this problem still exists.
The problem is: if the user add an attachment which has neither English characters nor numbers in the filename (in short, if the filename only contains Non-ASCII charactesr such as Chinese words) , though the file type is correct, like zip or jpg, but Kunena will NOT accept this attachment!
This is very annoying!
Because many users in China will try to upload a file with pure-Chinese filename, but failed, they will feel frustrated.
The worse is: Kunena never told the user to "please rename your filename", or "attachment adding failed because your filename is invalid". So, the users are very confused, they don't know WHY KUNENA REFUSE TO UPLOAD THEIR FILES.
My suggestion is: just let Kunena automatically rename the attachment file if the filename only contains Non-ASCII characters, renaming to date-time type filename will solve this problem. If you worry about duplicate filename conflicts, you can add post ID or user ID as prefix/suffix of the filename.
Hope you will agree with me and solve this problem in next version.
Thanks.
www.joomlagate.com/
Chinese Joomla Users' Portal
Please Log in or Create an account to join the conversation.
- joomlacode
- Visitor
I think in this case use mb_substr function to deal with the file name maybe better.
mb_substr can deal with the Multibyte String,such Chinese character,Japanese char...
makesafe() is another problem.
I don't konw if the developer has other consideration. Most of joomla component use substr,but some use mb_substr too(extplore googleads...), I don't know the efficiency difference between two function.
Thanks xiaobai to find this problem!
Please Log in or Create an account to join the conversation.
- baijianpeng
- Topic Author
- Offline
- Premium Member
- Posts: 230
- Thank you received: 5
I suggested "rename" method because I thought most western developers don't know how to handle Chinese language, as well as other utf-8 (double bytes) language characters when they programming for Joomla.
But, if they can accept your proposal, and improve their codes, this issue can be perfectly solved.
In fact, I think they can solve this, if they really take Joomla user in those countries that speak Non-Latin languages into consideration and really want to help them.
Hope the Kunena team will also agree with us.
www.joomlagate.com/
Chinese Joomla Users' Portal
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Recommended hosting vps: VPS with a panel ispmanager lite (Promo Code:648215714)
Please Log in or Create an account to join the conversation.
Mihanja wrote: Yes, this function is needed!
+1
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- baijianpeng
- Topic Author
- Offline
- Premium Member
- Posts: 230
- Thank you received: 5
This is a good improment, but, it still needs to be improved further.
What if the filename of the attachment has no ASCII character at all? For example a filename with all Chinese words?
In my test, for such a case, Kunena will trip off all those Chinese words and then the filename will NOT has any character for its "name" part, but only the "extension" part left.
For example, I have a file named:
You can see that the filename only contains Chinese characters.
When uploading, Kunena will trying to rename it to:
You can see that this is certainly impossible because there is no filename, ONLY the extension (pdf) left!
Hope Kunena team will work hard to solve this, a easy method is to add time-stamp to the filename, in this way the above file will be renamed to:
Well , a file with such a name can be uploaded without problem.
Thanks.
www.joomlagate.com/
Chinese Joomla Users' Portal
Please Log in or Create an account to join the conversation.
github.com/Kunena/Kunena-1.6/issues/202
Please Log in or Create an account to join the conversation.