Closed Kea-hash closed 10 months ago
Ive also add to apache2.conf those lines
<Directory /var/www/html/roundcube/plugins/cloudview/temp> Options Indexes FollowSymLinks AllowOverride None Require all granted
and remove "temp" from .htaccess from roundcube home dir
Internal Server error still persists
[23-Oct-2023 19:58:04 UTC] PHP Fatal error: Uncaught TypeError: fclose(): Argument https://github.com/jfcherng-roundcube/plugin-cloudview/pull/1 ($stream) must be of type resour>
This error msg seems to be edited? I guess it shouldn't end at >
and plus resour
should be resource
.
Thanks for fast answer, error was in folder permissions.
Completed
Thanks for fast answer, error was in folder permissions.
Interesting. I thought it will emit a permission error earlier when doing fopen()
...
maybe you know is there plugin for roundcube for preview .mp4 attachments?
Any modern web browser should play it. It's just not code to support it here.
You may try to add 'video/mp4',
after this line and see whether it works. https://github.com/jfcherng-roundcube/plugin-cloudview/blob/6d9123830ee622ae49ea3e1a073f0b40e24387f5/src/Viewer/HtmlJsViewer.php#L16
It works! Cool, thank you very much! You need to add it to release :)
0.6.18
has been released.
Hello! Ive installed plugin-cloudview by composer as instruction said. But have internal server error when try to view xls-attacment there is log. It's host on Ubuntu+Apache2 [23-Oct-2023 19:58:04 UTC] PHP Warning: fopen(/var/www/html/roundcube/plugins/cloudview/temp/8/a313fd14cd97e1afe5729f1> [23-Oct-2023 19:58:04 UTC] PHP Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resour> Stack trace:
0 /var/www/html/roundcube/plugins/cloudview/cloudview.php(345): fclose()
1 /var/www/html/roundcube/plugins/cloudview/cloudview.php(213): cloudview->saveAttachmentToLocal()
2 /var/www/html/roundcube/program/lib/Roundcube/rcube_plugin_api.php(577): cloudview->viewAction()
3 /var/www/html/roundcube/program/include/rcmail.php(255): rcube_plugin_api->exec_action()
4 /var/www/html/roundcube/index.php(278): rcmail->action_handler()
5 {main}
thrown in /var/www/html/roundcube/plugins/cloudview/cloudview.php on line 345