Download arrives as .BIN file

Post

Posted
Rating:
#7833 (In Topic #2360)
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’

file download should be .MP3

Hello,

This is super low priority and I am not able to reproduce this error. I tested on windows10 & android cell phone and it works as expected.

I have a page here: News archive - Nandalow

Featuring a MP3 file people can download or stream and for me all work great for me as expected and about 80 other people on various devices all reports works good but one user just contacted me and said the file download as a .BIN extension.

He is using a cellphone (Samsung Galaxy A30)

He renamed the file to MP3 and everything works he says.

I would think this situation is super rare but wanted to report it in case anyone else has the same issue

cheers

stevyn

 

———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top

Post

Posted
Rating:
#7834
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Find out what browser exactly he's using on the device please. E.g. inbuilt Android Browser, some Samsung thing, Chrome, …?


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7835
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I don't get this TBH, and am questioning whether it's maybe a link elsewhere. Maybe get a screenshot of before they click they link and confirm the exact hyperlink clicked.

HTTP headers:

Code

Content-Disposition
   attachment; filename="FIREFLY-Serenity-MIX-2007.mp3"
Content-Type
   application/octet-stream; authoritative=true;
The URL is to the PHP script, and while it is a .bin file under-the-hood, the URL to that file shouldn't even be exposed because it pipes through the PHP script.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7836
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’
Hi Chris, bit more info.

I posted the link :  News archive - Nandalow

on facebook in a firefly tv show discussion group and invited readers to go to my link for the mp3

he replied to me that he was using the   "Facebook Mobile Browser"   on his cellphone, the Samsung Galaxy A30.

So I am not sure exactly what the FB mobile browser is as I dont use it so unsure how it could extract it as a BIN.

Stevyn

———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top

Post

Posted
Rating:
#7837
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
At first I thought it was using .bin because Composr is using .bin for the on-disk filenames.

However I think it is an old Android bug whereby it uses .bin when it is not parsing the Content-Type header properly.
Android and the HTTP download file headers | DigiBlog

We have a semicolon on the end of the content-type header that should not really be there, but isn't really a problem except here.

The linked topic talks about Android 4, which is very old – but my guess is the issue is replicated in Facebook's inbuilt browser, probably based on the original Android Browser.

I'll post a hotfix based on this theory. I don't want to go test this as it would take me a while to try and reproduce.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Important!
Posted
Rating:
#7838
Avatar
Site director
admin is in the usergroup ‘Administrators’

Automated fix message

ironfeather said

Hello,

This is super low priority and I am not able to reproduce this error. I tested on windows10 & android cell phone and it works as expected.

I have a page here: News archive - Nandalow

Featuring a MP3 file people can download or stream and for me all work great for me as expected and about 80 other people on various devices all reports works good but one user just contacted me and said the file download as a .BIN extension.

He is using a cellphone (Samsung Galaxy A30)

He renamed the file to MP3 and everything works he says.

I would think this situation is super rare but wanted to report it in case anyone else has the same issue

cheers

stevyn

 
This issue has now been filed on the tracker as issue #4629, with a fix.
Important!
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,051 topics, 7,194 posts, 10,824 members
  • Our newest member is gracenayjanjoh
Birthdays:
Back to Top