Re: File Downloads

Open to all! Ask other shopowners for help.
Post Reply
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: File Downloads

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 30 times

Re: Re: File Downloads

Post 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
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Re: File Downloads

Post 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
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Re: File Downloads

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply