Welcome Guest, Not a member yet? Register   Sign In
What is the benefit of using force download
#7

(This post was last modified: 01-25-2016, 05:14 PM by RobertSF.)

(12-02-2015, 02:44 AM)ardavan Wrote: The basic way is to put the full path as <a> or something like that.
But i want to hide the path, like when you click on the download button, find the file's id from DB and then just push to the browser to download. (in simple explain: never show the path to user ).
Yes, CodeIgniter has a function called force_download. You must load the download helper first to use it. The user doesn't have to know the path of file. https://www.codeigniter.com/user_guide/h...elper.html I hope that helps.
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!
Reply


Messages In This Thread
RE: What is the benefit of using force download - by RobertSF - 01-25-2016, 05:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB