All questions about EDocman extension

Filename changed

More
4 years 1 week ago #133556 by Mr. Dam
Replied by Mr. Dam on topic Filename changed
Hi Dim,
You can try this way to store original file name.
1. Open file: root -> administrator -> components -> com_edocman -> model -> common -> document.php
2. Find:
$fileName = JFile::makeSafe($fileName);
and change to
//$fileName = JFile::makeSafe($fileName);

Then, you can try to upload Files with non-utf8 characters to see if the your problem is solved

Thanks
Dam

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

  • Dim Galan
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 week ago #133561 by Dim Galan
Replied by Dim Galan on topic Filename changed
Hi Dam,

Yes, commenting it out, works fine.
The question is, is it safe to do so?

Thanks

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

More
4 years 1 week ago #133562 by Mr. Dam
Replied by Mr. Dam on topic Filename changed
Hi,
I think there are some potential issues, but in case, you only allow to upload documents from Backend side, i think it is ok
Thanks
Dam

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

  • Dim Galan
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 week ago #133563 by Dim Galan
Replied by Dim Galan on topic Filename changed
Hi,

All is good then!

Thank you for the great support and keep up the good work!

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

  • Dim Galan
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 7 months ago - 3 years 7 months ago #138116 by Dim Galan
Replied by Dim Galan on topic Filename changed
Hi,

Everything was working fine until in the configuration the "Make filename safely" was added.
It created a mess and changed all filenames.

This is what I had done the last time according to your instructions:

"You can try this way to store original file name.
1. Open file: root -> administrator -> components -> com_edocman -> model -> common -> document.php
2. Find:
$fileName = JFile::makeSafe($fileName);
and change to
//$fileName = JFile::makeSafe($fileName);"

Now this was added in the configuration and changed all my filenames! Also, no matter if I turn it off or on, it changes the file name!

Thanks
Last edit: 3 years 7 months ago by Dim Galan.

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

More
3 years 6 months ago #138168 by Mr. Dam
Replied by Mr. Dam on topic Filename changed
Hi Dim,
It's strange, please submit ticket and provide your site url with super admin account. We will check the issue for you
Thanks
Dam
The following user(s) said Thank You: Dim Galan

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

  • Dim Galan
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #139218 by Dim Galan
Replied by Dim Galan on topic Filename changed
Hi Dam,
I have solved the issue.
This time It was due to my db collation. Now it is working ok.
But I would definitely suggest that you do the same (make filename safely) for the directories (make directoryname safely) as characters (e.g. as Greek in my case) are changed to latin.

Thanks

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

More
3 years 5 months ago #139238 by Mr. Dam
Replied by Mr. Dam on topic Filename changed
OK Dim

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

Moderators: Mr. Dam