Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hestiacn opened this issue May 6, 2024 · 10 comments
Labels

Comments

@hestiacn
Copy link

hestiacn commented May 6, 2024

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

@hestiacn
Copy link
Author

hestiacn commented May 6, 2024

        <?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
Copy link
Author

hestiacn commented May 6, 2024

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

@prasathmani
Copy link
Owner

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.

@hestiacn
Copy link
Author

hestiacn commented May 7, 2024

Does ViewerJS not support integration into the offline branch?

@prasathmani
Copy link
Owner

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

@hestiacn
Copy link
Author

hestiacn commented May 7, 2024

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

@prasathmani
Copy link
Owner

No

@hestiacn
Copy link
Author

hestiacn commented May 7, 2024

Thanks!

@hestiacn
Copy link
Author

hestiacn commented May 19, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants