• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.