Welcome Guest, Not a member yet? Register   Sign In
download problem

I have this problem.I upload a file and when I try to download this file with ci helper the file is damage. the size of the upload file is ok at server (I see via ftp).
What is wrong?

would you please paste your code used to download file from server. is it as
$data = file_get_contents("/path/to/photo.jpg"); // Read the file's contents
$name = 'myphoto.jpg';
force_download($name, $data);

if it is then would you please check your file location is correct or not.

I ask the hosting company, the answer were, there is a restriction for uploading files, that is why.

Theme © iAndrew 2016 - Forum software by © MyBB