tinyfilemanager icon indicating copy to clipboard operation
tinyfilemanager copied to clipboard

Is it possible to integrate an online viewer for offline scenarios? I can't access google Thanks to the developer!

Open hestiacn opened this issue 1 year ago • 10 comments

Is it possible to integrate an online viewer for offline scenarios? I can't access google Thanks to the developer!

hestiacn avatar May 06 '24 18:05 hestiacn

        <?php
        if($is_onlineViewer) {
            if($online_viewer == 'google') {
                echo '<iframe src="https://docs.google.com/viewer?embedded=true&hl=en&url=' . fm_enc($file_url) . '" frameborder="no" style="width:100%;min-height:460px"></iframe>';

hestiacn avatar May 06 '24 18:05 hestiacn

ViewerJS is recommended. Please help me configure it. I modified tinyfilemanager but it cannot be opened. Thanks you! I put it in the assets folder

hestiacn avatar May 06 '24 18:05 hestiacn

The current system only supports files that are publicly accessible and can be viewed by Google Viewer or Microsoft Viewer. If Google Viewer is not working, you can try using Microsoft Viewer as an alternative. However, offline viewing is not supported at this time.

prasathmani avatar May 07 '24 02:05 prasathmani

Does ViewerJS not support integration into the offline branch?

hestiacn avatar May 07 '24 03:05 hestiacn

The offline branch is currently not supported, but it will be taken into consideration for a future release.

prasathmani avatar May 07 '24 07:05 prasathmani

Does Google Viewer have an interface at cdn.jsdelivr.net? Or does CloudFlare have an interface?

hestiacn avatar May 07 '24 11:05 hestiacn

No

prasathmani avatar May 07 '24 13:05 prasathmani

Thanks!

hestiacn avatar May 07 '24 15:05 hestiacn

I found an online preview solution that can replace Google Viewer. Should you consider deploying it in tinyfilemanager? The following is the link address https://github.com/kekingcn/kkFileView

Official website and documents Address: https://kkview.cn online experience Please be kind to public services, which will be deactivated from time to time. Address: https://file.kkview.cn

hestiacn avatar May 19 '24 15:05 hestiacn

No

I found an online preview solution that can replace Google Viewer. Should you consider deploying it in tinyfilemanager? The following is the link address https://github.com/kekingcn/kkFileView

hestiacn avatar May 19 '24 16:05 hestiacn