• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
force_download not work? [FIXED]

[eluser]Ahmed Nuaman[/eluser]
Hello everyone.

I was using 'force_download' method successfully until recently. There's been no major changes in my code that I can think of that may affect it.

This is the set up.

File is located here: /home/folder/datafiles/somefile.zip
HTML root is here: /home/folder/wwwroot/

So, my script enters the following variables into the 'force_download' function:


This, however, does not work. It causes the error in Mozilla browsers saying:
Quote:XXX could not be saved because the source file could not be read

Any ideas?

Maybe because the original file outside the "HTML Root".

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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