Hyperlink for download a IFS file

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
alf1@eikisis.com
New User
Posts: 3
Joined: Wed Jan 18, 2012 5:48 pm
First Name: Alf
Last Name: Anda
Company Name: Eiki
Contact:

Hyperlink for download a IFS file

Post by alf1@eikisis.com »

I have a IFS file named "file_name.csv". I need to create a hyperlink on a panel like the one that "export csv" creates in a Grid, and behave the same, asking if I want to open or save file.
I tried with javascript "window.open("/path/file_name.csv"), but it no question, and it opens as text.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Hyperlink for download a IFS file

Post by David »

Unfortunatley, you cannot get that Open/Save dialog by linking to a static file. The browser displays that dialog when the page sends the file as an attachment, as indicated by this HTTP header:

Code: Select all

Content-Disposition: attachment;
To get this type of behavior, you would need to write a CGI or PHP program to read/output the file and to send the Content-Disposition header along with the file data.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest