Could you point a way to use a value already obtained by jQuery / Jason - that has a complete path of a file, to be used by PHP to download this file?

Hi Experts

Could you point a way to use a value already obtained  by jQuery / JSON - that has a complete path of a file, to be used by PHP (Codeigniter) to download this file?

Accordingly to:
img001
The path/file is obtained by jQuery/ JSON after a Codeigniter Controller call.

Thanks in advance.
Eduardo FuerteAsked:
Who is Participating?
 
Julian HansenCommented:
If I understand your question - you are receiving the path by jQuery and you want to download the file?

The simplest is to simply do a window.open(url)
0
 
Eduardo FuerteAuthor Commented:
Hi Julian

Perfect solution!
0
 
Eduardo FuerteAuthor Commented:
Thank you for so effective solution.
0
 
Julian HansenCommented:
You are welcome Eduardo,
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.