This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
jurito
Hello, I am wondering how to add a button on the backend that downloads a file (it's an export json btw).
I found this issue on github and i managed to do that with the redirect alternative, but what i want to achieve is downloading a file generated on the fly, not saving it to filesystem.
Looks like a simple task but i'm quite stuck on it, how could i do?
TIA
jurito
Got it. Just redirect to a custom route flashing the data in the session and then output it json encoded. Easy peasy actually, sorry for the stupid question.
1-2 of 2