ONLYOFFICE / onlyoffice-alfresco

The package which enables the users to edit office documents from Alfresco using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Alfresco
GNU General Public License v3.0
39 stars 32 forks source link

how to preview/read .log file using onlyoffice? #200

Open suzhen-github opened 5 months ago

suzhen-github commented 5 months ago
1 2

when i preview/read .log file using onlyoffice, the following error happened. <The "document.fileType" parameter for the config object is invalid. Please correct it.>

please tell me how to preview/read .log file using onlyoffice?

thanks.

ShestakovaSvetlana commented 5 months ago

Hello @suzhen-github, the “Edit in ONLYOFFICE” button should not be displayed for files with the .log extension, since files with this extension are not supported by OnlyOffice editors. Could you please specify some additional information about your environment and the issue, so we can reproduce it on our side? We require the following info:

  1. Version of the Document Server;
  2. Version of Alfresco;
  3. Version of the ONLYOFFICE connector for Alfresco.
suzhen-github commented 5 months ago
  1. Version of the Document Server ----> Windows Server 2019
  2. Version of Alfresco ----> Alfresco Community 7.4.0.1
  3. Version of the ONLYOFFICE connector for Alfresco ------>https://github.com/onlyoffice/onlyoffice-alfresco/releases (v6.1.0)

To display the action item [Edit in ONLYOFFICE] in alfresco, I had to modify the following source code in ONLYOFFICE connector for Alfresco as blow.


.onlyoffice-integration-platform-jar/src/main/java/com/parashift/onlyoffice/constants/Formats.java public static final List formats = new ArrayList() {{ add(new Format("log", Type.WORD, true, Arrays.asList("docm", "docx", "docxf", "dotx", "dotm", "epub", "fb2", "html", "odt", "ott", "pdf", "pdfa", "rtf", "txt")));

Even though, I had tried it , the files with the .log extension are not supported by OnlyOffice editors. I want to know if it is possible to have the files with the .log extension as a txt file supported by onlyoffice. Any good suggestions?

ShestakovaSvetlana commented 5 months ago

@suzhen-github, Unfortunately, there are currently no plans to implement a feature to convert .log files to .txt files. If the presence of this functionality is very important for you, then please contact the sales department sales@onlyoffice.com regarding this issue.