all my downloads are file.php

feedback, comments and suggestions pertaining to the *. forums
Post Reply
User avatar
tricky
Posts: 2441
Joined: Tue Jun 21, 2011 8:25 am
Contact:

all my downloads are file.php

Post by tricky » Wed Mar 07, 2018 7:14 am

I don't know why, but since the recent site update on my bedside phone, all downloaded files are now called file.php. I can rename them if I do it before I forget which one is which :oops:

User avatar
richardtoohey
Posts: 3563
Joined: Thu Dec 29, 2011 5:13 am
Location: Tauranga, New Zealand
Contact:

Re: all my downloads are file.php

Post by richardtoohey » Wed Mar 07, 2018 8:36 am

What sort of device is it ... ?

User avatar
EdwardianDuck
Posts: 47
Joined: Thu Aug 10, 2017 8:07 pm
Location: Northamptonshire
Contact:

Re: all my downloads are file.php

Post by EdwardianDuck » Wed Mar 07, 2018 9:07 am

If it's a modern Android phone which offloads file downloads from the browser to the download manager, you might see the download manager submitting a blank or unexpected user agent string (we saw this at work with something I'd developed). I suspect phpBB is then defaulting to this style of content disposition

Code: Select all

Content-Disposition: attachment; filename*=UTF-8''Subhunt%20S2.zip
instead of something like

Code: Select all

Content-Disposition: attachment; filename"Subhunt%20S2.zip"
and perhaps this is confusing the device?

https://tracker.phpbb.com/browse/PHPBB3-12133

I'm no Android expert (I don't even own such a device), but I just thought I'd throw this in because of the similarity to the issue we had at work with blank user agent strings.

Jeremy
Master 128 + RetroClinic DataCentre + Internal Pi Zero Coprocessor, MiST

User avatar
tricky
Posts: 2441
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: all my downloads are file.php

Post by tricky » Wed Mar 07, 2018 2:07 pm

Sorry, I should have said, Android 4.x.x
I've tried a few others and they do the same thing.
The attachment links are now of the form

Code: Select all

http://stardot.org.uk/forums/download/file.php?id=99999
and I guess that is where the file.php comes from.
I think that they used to be

Code: Select all

[attachment=0]map.png[/attachment]
which worked fine.

Post Reply