Welcome Guest, Not a member yet? Register   Sign In
[Q] CI function argument as a FILE path
#1

[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"},  
dojo.doc.body);

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
#2

[eluser]Eric Barnes[/eluser]
Probably need to take a look at the URI class: http://ellislab.com/codeigniter/user-gui...s/uri.html




Theme © iAndrew 2016 - Forum software by © MyBB