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

GenericFileException on md file #480

Open
mrbrdo opened this issue May 23, 2024 · 0 comments
Open

GenericFileException on md file #480

mrbrdo opened this issue May 23, 2024 · 0 comments

Comments

@mrbrdo
Copy link

mrbrdo commented May 23, 2024

I get an exception when generating a preview for an md text file. Is there any way to exclude certain file extensions?

23/05/2024 11:50:32 Generating previews for /admin/files/Photos/Readme.md
23/05/2024 11:50:32
23/05/2024 11:50:32 In File.php line 56:
23/05/2024 11:50:32
23/05/2024 11:50:32   [OCP\Files\GenericFileException]
23/05/2024 11:50:32
23/05/2024 11:50:32
23/05/2024 11:50:32 Exception trace:
23/05/2024 11:50:32   at /var/www/html/lib/private/Files/Node/File.php:56
23/05/2024 11:50:32  OC\Files\Node\File->getContent() at /var/www/html/lib/private/Files/SimpleFS/SimpleFile.php:74
23/05/2024 11:50:32  OC\Files\SimpleFS\SimpleFile->getContent() at /var/www/html/lib/private/Preview/GeneratorHelper.php:73
23/05/2024 11:50:32  OC\Preview\GeneratorHelper->getImage() at /var/www/html/lib/private/Preview/Generator.php:190
23/05/2024 11:50:32  OC\Preview\Generator->generatePreviews() at /var/www/html/lib/private/PreviewManager.php:207
23/05/2024 11:50:32  OC\PreviewManager->generatePreviews() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:230
23/05/2024 11:50:32  OCA\PreviewGenerator\Command\Generate->parseFile() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:212
23/05/2024 11:50:32  OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:210
23/05/2024 11:50:32  OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:190
23/05/2024 11:50:32  OCA\PreviewGenerator\Command\Generate->generateUserPreviews() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:136
23/05/2024 11:50:32  OCA\PreviewGenerator\Command\Generate->OCA\PreviewGenerator\Command\{closure}() at /var/www/html/lib/private/User/Manager.php:657
23/05/2024 11:50:32  OC\User\Manager->callForSeenUsers() at /var/www/html/custom_apps/previewgenerator/lib/Command/Generate.php:135
23/05/2024 11:50:32  OCA\PreviewGenerator\Command\Generate->execute() at /var/www/html/3rdparty/symfony/console/Command/Command.php:298
23/05/2024 11:50:32  Symfony\Component\Console\Command\Command->run() at /var/www/html/3rdparty/symfony/console/Application.php:1040
23/05/2024 11:50:32  Symfony\Component\Console\Application->doRunCommand() at /var/www/html/3rdparty/symfony/console/Application.php:301
23/05/2024 11:50:32  Symfony\Component\Console\Application->doRun() at /var/www/html/3rdparty/symfony/console/Application.php:171
23/05/2024 11:50:32  Symfony\Component\Console\Application->run() at /var/www/html/lib/private/Console/Application.php:213
23/05/2024 11:50:32  OC\Console\Application->run() at /var/www/html/console.php:113
23/05/2024 11:50:32  require_once() at /var/www/html/occ:11
23/05/2024 11:50:32
23/05/2024 11:50:32 preview:generate-all [-p|--path [PATH]] [--] [<user_id>...]
23/05/2024 11:50:32

File contents:

# Photos

Some nice example photos, licensed under Creative Commons Attribution. Try switching to grid view or open them in the brand new Photos app!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant