Can't Open The Downloaded File Using Yii::app()->Request->Xsendfile

i am using a xSendfile() method for downloading the file but i have error that is when i download the file than open it so i can’t open that downloaded file.

so please give me answer…?

Did you check the size of the downloaded file?

If it’s 0 than you don’t have this option enabled on the server, also there are some known issues with this option… check the documentation -

x-send merely diverts you to the file. its likely the file itself. why don’t you download the file and see if it not corrupt.