Simple file server that works for MS Windows users as well - ideas?

Colin Watson cjwatson at ubuntu.com
Wed Oct 21 17:18:45 UTC 2020


On Wed, Oct 21, 2020 at 04:38:25PM +0100, Chris Green wrote:
> But upload to what?  I can upload a file to my web site but they seem
> incapable of downloading it.  I.e. I uploaded a file and gave them the
> URL:-
> 
>     https://isbd.uk/fred.mp3
> 
> and they couldn't download it!  They just said "we can play the file
> but not download it".  I told them to right click on the file in their
> browser and save it but that seemed to be beyond them.

If you have control of the web server, then arranging for the server to
send the "Content-Disposition: attachment" HTTP header should cause web
browsers to default to downloading the file rather than displaying it
inline.  (But you may wish to use some more off-the-shelf solution
instead, as per the rest of the thread.)

  https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition

-- 
Colin Watson (he/him)                              [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list