Downloading ssds

feedback, questions and discussion relating to www.bbcmicro.co.uk
Post Reply
User avatar
pau1ie
Posts: 720
Joined: Thu May 10, 2012 10:48 pm
Location: Bedford
Contact:

Downloading ssds

Post by pau1ie » Tue Jan 22, 2019 4:29 pm

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?

User avatar
lurkio
Posts: 2569
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Downloading ssds

Post by lurkio » Tue Jan 22, 2019 4:52 pm

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.

:?:

User avatar
lurkio
Posts: 2569
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Downloading ssds

Post by lurkio » Tue Jan 22, 2019 4:54 pm

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

:?:

User avatar
leenew
Posts: 4090
Joined: Wed Jul 04, 2012 4:27 pm
Location: Doncaster, Yorkshire
Contact:

Re: Downloading ssds

Post by leenew » Tue Jan 22, 2019 5:30 pm

I don't have issues downloading individual SSDs on Firefox on my Windows 10 desktop PC either.
Edge fails in the way you describe #-o

Lee.

User avatar
ctr
Posts: 230
Joined: Wed Jul 16, 2014 3:53 pm
Contact:

Re: Downloading ssds

Post by ctr » Tue Jan 22, 2019 5:34 pm

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.

User avatar
pau1ie
Posts: 720
Joined: Thu May 10, 2012 10:48 pm
Location: Bedford
Contact:

Re: Downloading ssds

Post by pau1ie » Tue Jan 22, 2019 5:51 pm

Does that mean I have to write a php wrapper to set headers?

User avatar
ctr
Posts: 230
Joined: Wed Jul 16, 2014 3:53 pm
Contact:

Re: Downloading ssds

Post by ctr » Tue Jan 22, 2019 6:21 pm

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:

Code: Select all

AddType application/vnd.acorn.disc-image.ssd .ssd
I guess it goes in httpd.conf or .htaccess.

User avatar
lurkio
Posts: 2569
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Downloading ssds

Post by lurkio » Tue Jan 22, 2019 6:27 pm

You could alternatively try setting the HTML5 "download" attribute of the anchor ("<a>") tag:
:?:

User avatar
MartinB
Posts: 5285
Joined: Mon Mar 31, 2008 10:04 pm
Location: Obscurity
Contact:

Re: Downloading ssds

Post by MartinB » Tue Jan 22, 2019 9:00 pm

In Edge under Windows 10 (and probably other OS), you can just Right-Click on the [Download] box and select 'Save Target as'

roganjosh
Posts: 124
Joined: Sat Dec 10, 2016 6:51 pm
Location: W.Yorks
Contact:

Re: Downloading ssds

Post by roganjosh » Tue Jan 22, 2019 10:52 pm

MartinB wrote:
Tue Jan 22, 2019 9:00 pm
In Edge under Windows 10 (and probably other OS), you can just Right-Click on the [Download] box and select 'Save Target as'
Though that works with Firefox, using Edge the filetype is then set to HTML despite it being an ssd file.

User avatar
MartinB
Posts: 5285
Joined: Mon Mar 31, 2008 10:04 pm
Location: Obscurity
Contact:

Re: Downloading ssds

Post by MartinB » Wed Jan 23, 2019 7:30 am

Ah yes - though I'm a compulsive download file renamer anyway so I hadn't noticed tbh :)

User avatar
pau1ie
Posts: 720
Joined: Thu May 10, 2012 10:48 pm
Location: Bedford
Contact:

Re: Downloading ssds

Post by pau1ie » Wed Feb 06, 2019 8:43 am

ctr wrote:
Tue Jan 22, 2019 6:21 pm
httpd.conf or .htaccess
I don't have access to httpd.conf. htaccess isn't enabled as far as I can see.
lurkio wrote:
Tue Jan 22, 2019 6:27 pm
HTML5 "download" attribute
I gave that a go on the game.php page
roganjosh wrote:
Tue Jan 22, 2019 10:52 pm
using Edge the filetype is then set to HTML despite it being an ssd file
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.

User avatar
danielj
Posts: 7964
Joined: Thu Oct 02, 2008 5:51 pm
Location: Manchester
Contact:

Re: Downloading ssds

Post by danielj » Wed Feb 06, 2019 9:22 am

If its the same virtual box as this forum, I should be able to change that for you...

d.

User avatar
pau1ie
Posts: 720
Joined: Thu May 10, 2012 10:48 pm
Location: Bedford
Contact:

Re: Downloading ssds

Post by pau1ie » Wed Feb 06, 2019 9:54 am

danielj wrote:
Wed Feb 06, 2019 9:22 am
If its the same virtual box as this forum
I believe it is. What are you proposing to change? .htaccess or adding the config to the httpd.conf?

User avatar
danielj
Posts: 7964
Joined: Thu Oct 02, 2008 5:51 pm
Location: Manchester
Contact:

Re: Downloading ssds

Post by danielj » Wed Feb 06, 2019 10:02 am

I think we should add it to httpd.conf, yes?

d.

User avatar
pau1ie
Posts: 720
Joined: Thu May 10, 2012 10:48 pm
Location: Bedford
Contact:

Re: Downloading ssds

Post by pau1ie » Wed Feb 06, 2019 3:05 pm

danielj wrote:
Wed Feb 06, 2019 10:02 am
I think we should add it to httpd.conf, yes?
Sounds good.

User avatar
danielj
Posts: 7964
Joined: Thu Oct 02, 2008 5:51 pm
Location: Manchester
Contact:

Re: Downloading ssds

Post by danielj » Wed Feb 06, 2019 3:27 pm

Nice. It might be tomorrow that I get to it at this rate though...

d.

User avatar
pau1ie
Posts: 720
Joined: Thu May 10, 2012 10:48 pm
Location: Bedford
Contact:

Re: Downloading ssds

Post by pau1ie » Wed Feb 06, 2019 5:41 pm

Thanks. Let me know when it is done, and I will test.

roganjosh
Posts: 124
Joined: Sat Dec 10, 2016 6:51 pm
Location: W.Yorks
Contact:

Re: Downloading ssds

Post by roganjosh » Mon Apr 01, 2019 9:57 pm

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

User avatar
lurkio
Posts: 2569
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Downloading ssds

Post by lurkio » Tue Apr 02, 2019 12:05 pm

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.

:!:

Post Reply

Return to “the complete BBC games archive”