filebrowser icon indicating copy to clipboard operation
filebrowser copied to clipboard

Preview error: 501 for Excel and PowerPoint xls,xlsx,ppt,pptx

Open baur opened this issue 7 months ago • 7 comments

C:\Apps\filebrowser>filebrowser version
FileBrowser Quantum - A modern web-based file manager
        Version          : 0.7.8-beta
        Commit           : 1ce3bf1
        Release Info     : https://github.com/gtsteffaniak/filebrowser/releases/tag/0.7.8-beta

I get 501 error for xls,xlsx,ppt,pptx

2025/06/10 10:06:13 GET     | 501 | [::1]:61273     | admin        | 0ms          | "/api/preview?path= ...
2025/06/10 10:06:37 GET     | 501 | [::1]:61273     | admin        | 0ms          | "/api/preview?path= ...

and black screen

Image

and can't disable preview:

tried this settings

  disablePreviews: true
  disableOfficePreviewExt: "xls,xlsx,ppt,pptx"

Word file and PDF, txt works

baur avatar Jun 10 '25 05:06 baur

I'd like to disable preview only for specific file types (.xls, .xlsx, .ppt, .pptx) when preview is not implemented, but keep preview enabled for other supported types such as .doc, .txt, .pdf.

  • Do not disable preview globally.
  • Disable it only for the mentioned formats until their preview functionality is implemented.

baur avatar Jun 10 '25 05:06 baur

Sounds like a good change, thanks for opening the issue and describing it well.

I didn't think too hard about the consequences of disabling the files here.

I also need to had integration tests for all these different preview types.

gtsteffaniak avatar Jun 10 '25 13:06 gtsteffaniak

When opening any file with preview, the sidebar closes automatically. However, when previewing a Markdown (.md) file, the sidebar stays open. It would be nice to have same behavior for all previewed files

Image

baur avatar Jun 11 '25 06:06 baur

Yes that's something I have wrestled with. I don't know what's best, but I think if sidebar is "sticky" (the pin toggle is enabled), it should show up even for editor and image preview?

Right now it hides in editor and for file preview modes like photos, only office, video.

It creates a bit of inconsistent experience though.

gtsteffaniak avatar Jun 11 '25 13:06 gtsteffaniak

should show up even for editor and image preview?

no, would be nice if sidebar closes automatically for MD files too, by this will be same behavior for all files

baur avatar Jun 11 '25 14:06 baur

try out 0.7.9 and let me know if it addresses everything

gtsteffaniak avatar Jun 14 '25 21:06 gtsteffaniak

0.7.9-beta, same error with xlsx, pptx

C:\Apps\filebrowser>filebrowser version
FileBrowser Quantum - A modern web-based file manager
        Version          : 0.7.9-beta
        Commit           : b5b4c0c
        Release Info     : https://github.com/gtsteffaniak/filebrowser/releases/tag/0.7.9-beta
2025/06/16 08:17:49 GET     | 501 | [::1]:63179     | admin        | 0ms          | "/api/preview?path=...xlsx&key=1706162128365&source=SRC1&inline=true&size=original"
2025/06/16 08:18:09 GET     | 501 | [::1]:63179     | admin        | 0ms          | "/api/preview?path=...pptx&key=1576754740825&source=SRC1&inline=true&size=original"

baur avatar Jun 16 '25 03:06 baur

Openned sidebar on preview of Word file

Image

maybe create option that allows show or hide sidebar on preview mode?

baur avatar Jun 20 '25 10:06 baur

FileBrowser Quantum - A modern web-based file manager
        Version          : 0.7.10-beta
        Commit           : 0a31603
        Release Info     : https://github.com/gtsteffaniak/filebrowser/releases/tag/0.7.10-beta
  • The same 501 error occurs when opening .xlsx and .pptx files.
  • The config option disableHideSidebar: true has no effect.

Environment

  • OS: Windows 11
  • Docker: ❌ Not used
  • Executable: filebrowser.exe

baur avatar Jun 23 '25 04:06 baur

thanks I will test this on windows soon.

gtsteffaniak avatar Jun 25 '25 21:06 gtsteffaniak