Solved

file name not known to client

Posted on 2001-06-25
5
137 Views
Last Modified: 2013-12-25
I am receiving a form from a client, this contains a filename, this file is then found (in a secure area) and streamed back by a cgi program, (I send the mime types etc.) the only problem is: the client receives the name of the cgi program and not: mywordfile.doc, how can I get round this?
0
Comment
Question by:th94nn
  • 2
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
marecs earned 200 total points
ID: 6226688
Use the header
Content-Disposition: attachment; filename="name.xxx"

It will work with recent browsers on Windows, but not on Macs.
0
 
LVL 3

Expert Comment

by:rag2000
ID: 6227159
< listening >
0
 
LVL 1

Author Comment

by:th94nn
ID: 6228431
O.K. I will give it a go and let you know how I got on,....
0
 
LVL 1

Author Comment

by:th94nn
ID: 6230159
Thanks marecs I works just great! is this documented someware?
0
 
LVL 5

Expert Comment

by:marecs
ID: 6230267
I'm glad it works. It is annoying working on a Mac where it does not work :-(, but then again, a Mac's notion of filenames is anyway screwball.

ftp://ftp.isi.edu/in-notes/rfc2616.txt
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google  (Get  Users Email) 2 138
AWS CLI - Instances, Volumes & Tagging 2 113
AWK Code gives empty file, why? 12 37
AWK: How to strip all double quotes from a file? 7 24
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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