[Q] CI function argument as a FILE path |
[eluser]vlad_ci[/eluser]
Hi, I have a file path that I want to pass to cogeigniter from my ajax app the file path is /tmp/otrq/i/xyz.xls In my ajax I invoke codeigniter as Code: dojo.create("iframe", {id:"idDLFrame",src: href , style: "display: none"}, where href is http://localhost/codeigniter/index.php/f.../i/xyz.xls downloadFile is the method of my filemgr codeigniter controller what I need is essentially get the 'filename' /tmp/otrq/i/xyz.xls from within the downloadFile( ) function so how can I do that? thank you
[eluser]Eric Barnes[/eluser]
Probably need to take a look at the URI class: http://ellislab.com/codeigniter/user-gui...s/uri.html |
Welcome Guest, Not a member yet? Register Sign In |