Huangjin
asked on
How to specify the download file name on the download frame
When I down load the data from the DB by using CGI, the file name displayed on frame of file download is of my running file's name(for example: dbdload.pl). I wont to give to clients the file name like "data_xx.csv" on frame of file download directly, even through the file doesn't exist at that time, but I don't know how to do it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I like maneshr's idea.
Perhaps a combination of the two would help more browsers to understand the filename you want (assuming, as maneshr said, that you're not running IIS).
Perhaps a combination of the two would help more browsers to understand the filename you want (assuming, as maneshr said, that you're not running IIS).
in fact i think bigbed's idea is the better of the two since you can use that on any web server.
i intend using it myself in the future!!
i intend using it myself in the future!!
for non IIS servers you can just append the filename to the URL and the download will then be on that filename. Unfortunately, IIS does not support this.