Downloading ssds
Downloading ssds
It has been pointed out to me that downloading ssd images from bbcmicro.co.uk doesn't work very well in edge or firefox. I just point apache at the image and hope it will do the right thing, but that seems not to be the case any longer. Firefox tries to render it as an image, then decides it is corrupt. Edge just splats the SSD contents on to the screen.
Does anyone have ideas on how to make this work better?
Does anyone have ideas on how to make this work better?
Re: Downloading ssds
I haven't been able to reproduce the issue in Firefox for Mac or in Firefox on Windows 7. In both cases, I get a popup asking me what I want to do with the .SSD: the options are "Cancel" and "Save file" on Mac, and "Open with: BeebEm (default)" and "Save file" on Windows.
I haven't got a handy install of Edge to try.

I haven't got a handy install of Edge to try.

Re: Downloading ssds
I do have a vague memory of an HTTP response-header called "Content-disposition:attachment". Dunno if it's relevant here though.


Re: Downloading ssds
I don't have issues downloading individual SSDs on Firefox on my Windows 10 desktop PC either.
Edge fails in the way you describe
Lee.
Edge fails in the way you describe

Lee.
Re: Downloading ssds
On Windows 10 it works fine for me in Firefox but Edge is guessing the type because the response doesn't have a content-type header.
The generic content-type for "this is a binary blob so don't try to display it" is "application/octet-stream".
Alternatively, Tom Seddon is using "application/vnd.acorn.disc-image.ssd". This is potentially more useful because you could configure your computer to load ssds straight into an emulator.
The generic content-type for "this is a binary blob so don't try to display it" is "application/octet-stream".
Alternatively, Tom Seddon is using "application/vnd.acorn.disc-image.ssd". This is potentially more useful because you could configure your computer to load ssds straight into an emulator.
Re: Downloading ssds
Does that mean I have to write a php wrapper to set headers?
Re: Downloading ssds
No, Apache can do content-type for you. You just need to tell it that ssd files have mime type application/vnd.acorn.disc-image.ssd (or application/octet-stream if you prefer).
I haven't used Apache in years but a quick Google suggests you need to add this to a config file:
I guess it goes in httpd.conf or .htaccess.
I haven't used Apache in years but a quick Google suggests you need to add this to a config file:
Code: Select all
AddType application/vnd.acorn.disc-image.ssd .ssd
Re: Downloading ssds
You could alternatively try setting the HTML5 "download" attribute of the anchor ("<a>") tag:


Re: Downloading ssds
In Edge under Windows 10 (and probably other OS), you can just Right-Click on the [Download] box and select 'Save Target as'
Re: Downloading ssds
Ah yes - though I'm a compulsive download file renamer anyway so I hadn't noticed tbh 

Re: Downloading ssds
I don't have access to httpd.conf. htaccess isn't enabled as far as I can see.
I gave that a go on the game.php page
Can you verify that it is now fixed on the game.php page? I haven't uploaded the index.php yet, so it won't be fixed there.
Re: Downloading ssds
If its the same virtual box as this forum, I should be able to change that for you...
d.
d.
Re: Downloading ssds
I think we should add it to httpd.conf, yes?
d.
d.
Re: Downloading ssds
Nice. It might be tomorrow that I get to it at this rate though...
d.
d.
Re: Downloading ssds
Thanks. Let me know when it is done, and I will test.
Re: Downloading ssds
Given that this thread has been inactive for a couple of months I thought I'd better point out that the problem is still there when using Edge.
Alan
Alan
Re: Downloading ssds
I finally got access to an install of the Edge browser (Edge 25.10586.672.0 / EdgeHTML 13.10586), and I found that it is still failing to download .SSDs from bbcmicro.co.uk as discussed above.

