changing filename of file-type object

R

rspoonz

I have a cgi script from which I wish to return a zipped file with an
extension other than .zip (ie .zzz)

I am creating a file-type object (cStringIO) and adding some zipped
information to it using zipfile.

I then return this with Content-Type: application/zip

The problem is that the file the browser sees has a .zip extension. Is
there any way I can change this extension?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,328
Members
48,013
Latest member
fmb_amith

Latest Threads

Top