seafile icon indicating copy to clipboard operation
seafile copied to clipboard

.csv files do not open in OnlyOffice

Open hoffepoffe opened this issue 3 years ago • 2 comments

I’m running OnlyOffice in Seafile Professional 8.0.10 and everything works fine. I noticed that several file types which are supported by OnlyOffice (e.g. doc in addition to docx) are not configured by default in Seafile to be opened in OnlyOffice. I therefore added '.doc' and '.csv' to seahub_settings.py. Now I can edit also doc files. However, when I click on a csv file, it just opens in the Seafile viewer and not in OnlyOffice. Since doc files open in OnlyOffice after I added it (they didn't before), I know the config file is correct.

I also tried removing ‘csv’ from TEXT_PREVIEW_EXT but csv files still don’t open in OnlyOffice. The only thing I get then is “Online view is not applicable to this file format”.

Here is the relevant part from my seahub_settings.py:

ONLYOFFICE_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’, ‘odt’, ‘fodt’, ‘odp’, ‘fodp’, ‘ods’, ‘fods’, ‘csv’)
ONLYOFFICE_EDIT_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’, ‘odt’, ‘odp’, ‘ods’, ‘csv’)

hoffepoffe avatar Sep 14 '21 16:09 hoffepoffe

Same issue :( I'm using Seafile Community edition v10.0.1. Have you managed to fix this issue ?

Alg0v avatar Jan 04 '24 17:01 Alg0v

I’m running OnlyOffice in Seafile Professional 8.0.10 and everything works fine. I noticed that several file types which are supported by OnlyOffice (e.g. doc in addition to docx) are not configured by default in Seafile to be opened in OnlyOffice. I therefore added '.doc' and '.csv' to seahub_settings.py. Now I can edit also doc files. However, when I click on a csv file, it just opens in the Seafile viewer and not in OnlyOffice. Since doc files open in OnlyOffice after I added it (they didn't before), I know the config file is correct.

I also tried removing ‘csv’ from TEXT_PREVIEW_EXT but csv files still don’t open in OnlyOffice. The only thing I get then is “Online view is not applicable to this file format”.

Here is the relevant part from my seahub_settings.py:

ONLYOFFICE_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’, ‘odt’, ‘fodt’, ‘odp’, ‘fodp’, ‘ods’, ‘fods’, ‘csv’)
ONLYOFFICE_EDIT_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’, ‘odt’, ‘odp’, ‘ods’, ‘csv’)

Hello, maybe some code changes is needed too, we will check this problem these days.

imwhatiam avatar Jan 06 '24 02:01 imwhatiam