[eluser]murphy2006[/eluser]
Thanks for the quick reply!
I think I have fixed the problem now. The only thing I did was to move the force download function to its own function within the controller and now it works fine.
The current problem now is that I get the complete folder structure replicated within the Zip-file now, ie instead of just getting the three files I want I get the tree too:
files/notes/content/
Anyone knows how to fix this?