forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: olli80 on November 18, 2011, 11:20:53 am

Title: Download in forum not working?
Post by: olli80 on November 18, 2011, 11:20:53 am
Hi there,

everytime i click on a download link in this forum it just give me a index.php for downloading.

I´m registered and loged in!

Is it a problem with the forum or me?
Title: Re: Download in forum not working?
Post by: Αndré on November 18, 2011, 12:52:47 pm
I also noticed that behavior with the latest Firefox release. The content of the file is correct, but the file name is always index.php. It doesn't happen with e.g. Chrome, at least for me. I don't know if it's a general issue with Firefox, SMF2 or just the combination of (my) Firefox and our board.

Maybe someone else can report their experiences, so we can post a bug report if necessary.
Title: Re: Download in forum not working?
Post by: lurkalot on November 23, 2011, 10:11:23 pm
It's a SMF issue.  Has this been resolved now?  If not there's some info regarding the problem here, http://www.simplemachines.org/community/index.php?topic=451766.0  it also says what file to edit to resolve it.
Title: Re: Download in forum not working?
Post by: Αndré on November 24, 2011, 11:29:25 am
Still happens for me, e.g. when I try to download a zip file from the plugin contributions board.
Title: Re: Re: Download in forum not working?
Post by: lurkalot on November 25, 2011, 09:53:21 am
Still happens for me, e.g. when I try to download a zip file from the plugin contributions board.

Andre, I don't have server access, so I'm waiting for an official patch that can be installed through the package manager to solve this issue.   There is one patch available ATM, but waiting for feedback on it to make sure it covers all types of attachment. ;)
Title: Re: Download in forum not working?
Post by: Αndré on November 25, 2011, 10:32:06 am
I assume you're talking about that patch: http://dev.simplemachines.org/mantis/view.php?id=4825

Unlike described in the instructions you have to apply that patch to the file Sources/Display.php (at least that's the only place I found the code part). I'll apply the patch soon and will test as thorough as possible.
Title: Re: Download in forum not working?
Post by: Αndré on November 25, 2011, 10:35:20 am
Test file attached.

Update: Doesn't work with file names with spaces (as expected, as they removed the required quotes). I'll now try to fix that issue for our board. If we have a working fix, we can provide it to the SMF team. Do you have an account on their boards, lurkalot?
Title: Re: Download in forum not working?
Post by: lurkalot on November 25, 2011, 10:39:47 am
Thanks Andre, hopefully sorted then. 

Cheers.  ;)
Title: Re: Download in forum not working?
Post by: Αndré on November 25, 2011, 10:40:45 am
I just updated my previous post.
Title: Re: Download in forum not working?
Post by: lurkalot on November 25, 2011, 10:44:11 am
I think this has been mentioned before in another thread, I'll see if I can find it.
Title: Re: Download in forum not working?
Post by: lurkalot on November 25, 2011, 10:48:39 am
This is the tread where the patch with install via package manager is posted.  I'm sure it mentions the quotes problem too. http://www.simplemachines.org/community/index.php?topic=454734.0
Title: Re: Download in forum not working?
Post by: Αndré on November 25, 2011, 10:52:39 am
I haven't read that thread yet, but think I fixed it on my own. Needs some more testing, but removing the whole Firefox case (and using the default method) seems to work as expected for file names with and without spaces. Will test non-latin characters now.
Title: Re: Download in forum not working?
Post by: Αndré on November 25, 2011, 10:59:30 am
Test file with spaces and non-latin characters attached.

Update: the UTF-8 characters get encoded. Not very beautiful, but as the majority of our files contain just alphanumeric latin characters a workaround I can live with, until a real fix is provided by the SMF team.
Title: Re: Download in forum not working?
Post by: lurkalot on November 25, 2011, 11:05:38 am
That's fantastic Andre, as long as it works that's the main thing.  I'll keep following the progress over at SMF. ;)

Thanks again.  ;)
Title: Re: Download in forum not working?
Post by: Αndré on November 25, 2011, 11:08:56 am
We're now using the Opera header, as it works as expected as far as I can judge.