• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
download problem

#1
[eluser]dimis[/eluser]
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?

#2
[eluser]Sumon[/eluser]
would you please paste your code used to download file from server. is it as
Code:
$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.

#3
[eluser]dimis[/eluser]
I ask the hosting company, the answer were, there is a restriction for uploading files, that is why.
Dimis


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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