download with X sendFile

assalammu’alaykum …

Hello!

i want to download image and another file from server with X sendFile. it is sucess to download but corupt cann’t to open. anyone can help me? ??? thanks

http://www.yiiframework.com/extension/edownloadhelper

xSendFile() uses a special server directive like "x-sendfile"… this directive depends on server OS…

check the documentation - http://www.yiiframework.com/doc/api/1.1/CHttpRequest#xSendFile-detail

and the wiki article - http://www.yiiframework.com/wiki/129/x-sendfile-serve-large-static-files-efficiently-from-web-applications

Check the filesize is not 0 (explained in the doc)…

and check that you don’t have any other output like the CWebLogRoute enabled

thanks to All :D