Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Force Download


Reply


2 Posts   1617 Views

Avatar
lildiablo

Community Member, 2 Posts

10 March 2010 at 7:03am

Hi is there a way to set up a force download controller?
Is there a helper?
Any like the one code igniter uses
http://codeigniter.com/user_guide/helpers/download_helper.html

thanks

Avatar
Hamish

Community Member, 712 Posts

10 March 2010 at 10:27am

HTTPRequest ::send_file($fileData, $fileName, $mimeType = null)

Note that HTTPRequest is renamed to SS_HTTPRequest in the next version (2.4).

Regards
Hamish