[Spice-devel] About the website download error

Victor Toso victortoso at redhat.com
Mon May 29 13:13:05 UTC 2023


Hi,

On Sun, May 28, 2023 at 08:15:43AM +0100, Frediano Ziglio wrote:
> Il giorno dom 28 mag 2023 alle ore 07:38 Frediano Ziglio
> <freddy77 at gmail.com> ha scritto:
> >
> > Hi,
> >    as a workaround click on the link with the right mouse button and click on download.
> >
> > It's just a server configuration that sends back the file as something to display instead of something to save.
> >
> > But strangely it worked correctly for me. Which browser and version are you using?
> >
> > Regards,
> >    Frediano
> >
> >
> 
> This is the results trying to download the file
> 
> HTTP/1.1 200 OK
> Date: Sun, 28 May 2023 07:08:45 GMT
> Server: Apache
> X-Content-Type-Options: nosniff
> X-Frame-Options: SAMEORIGIN
> Referrer-Policy: same-origin
> Permissions-Policy: camera=(), fullscreen=(), geolocation=(),
> microphone=(), payment=(), usb=()
> Strict-Transport-Security: max-age=2592000; includeSubDomains
> Last-Modified: Wed, 03 Aug 2022 09:06:09 GMT
> ETag: "c7c200-5e5528b37f99a"
> Accept-Ranges: bytes
> Content-Length: 13091328
> Keep-Alive: timeout=5, max=100
> Connection: Keep-Alive
> 
> It seems the mime type is missing. Now if we want to fix that we need
> to change mime type configuration on the server. I found this link
> https://mediatemple.net/community/products/dv/204403964/mime-types

It works here as well. It is not like the browser should try to
open a content as text if it doesn't know what it is.  Another
alternative is to use download attribute.

    https://www.w3schools.com/tags/att_a_download.asp

Cheers,
Victor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20230529/0db40b00/attachment.sig>


More information about the Spice-devel mailing list