Page 1 of 1

Re: File Downloads

Posted: Thu Mar 26, 2026 9:37 am
by tessthepup
Morning chaps,

I have never really had to use the file downloads with attributes before but now I do.

When I place an order for a product and then go and change the order status to delivered the file download appears on the order page.

However when I click the button to download the file I get a blank page and a 302 error in the network tab in the browser console?

The url looks like this which I know is wrong lol
Is it a bug or something I have missed?

Thanks
Mark

Re: Re: File Downloads

Posted: Thu Mar 26, 2026 9:50 am
by BrockleyJohn
302 isn't an error, it's a redirect which is what's supposed to happen.

It may relate to the file being .txt which the browser is trying to display instead of download.

Try a .zip before digging further

Re: Re: File Downloads

Posted: Thu Mar 26, 2026 9:57 am
by tessthepup
BrockleyJohn wrote: Thu Mar 26, 2026 9:50 am 302 isn't an error, it's a redirect which is what's supposed to happen.

It may relate to the file being .txt which the browser is trying to display instead of download.

Try a .zip before digging further
@BrockleyJohn ah yes that makes sense and does work, maybe thats something that needs addressing in core for all file types @burt

Re: Re: File Downloads

Posted: Thu Mar 26, 2026 3:03 pm
by burt
This is an area I have never looked into, not once going back all the years I've been involved with `osC`, `CE`, Phoenix etc. I can put it on the ever-growing `to-do` list.

If anyone, `co-operative code`, wanted to take responsibility for this part and revamp to go into Core, I'd be grateful.