Solved

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?

Posted on 2016-10-05
4
75 Views
Last Modified: 2016-10-05
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.
0
Comment
Question by:Eduardo Fuerte
  • 2
  • 2
4 Comments
 
LVL 52

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41829750
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
 

Author Comment

by:Eduardo Fuerte
ID: 41829765
Hi Julian

Perfect solution!
0
 

Author Closing Comment

by:Eduardo Fuerte
ID: 41829768
Thank you for so effective solution.
0
 
LVL 52

Expert Comment

by:Julian Hansen
ID: 41829876
You are welcome Eduardo,
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now