solid-filemanager icon indicating copy to clipboard operation
solid-filemanager copied to clipboard

.zip content-type `unknown`

Open bourgeoa opened this issue 9 months ago • 2 comments

I zipped public/ the zip resource created was public.zip as expected but with the file in the file system was public.zip$.unknown meaning that the content-type is unknown.

bourgeoa avatar Mar 03 '25 15:03 bourgeoa

When logging the generated blob before downloading (here), it outputs Blob { size: 474592, type: "application/zip" }. So at least until there it is fine, and afterwards I don't know what could go wrong. On Linux with Firefox it gets downloaded as public.zip.

And in case you meant the "Zip here" action, it is uploaded with content-type: application/zip, so that also should work.

So I am not sure where it breaks in your case, or what I could adjust.

Otto-AA avatar Mar 04 '25 14:03 Otto-AA

I don't know where the issue comes from.

  • with your version I got application/octet-stream
  • with my version at https://bourgeoa.github.io/solid-filemanager I got application/zip

You can see the content-type in source-pane for a Container contents.

bourgeoa avatar Mar 04 '25 21:03 bourgeoa