Re: About the website download error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]