> > >    header("Content-disposition: attachment;
> > > filename=".$attachment->title);
> > >    mgd_serve_attachment($argv[0]);
> > 
> > Is that working code? You send header before serve
> > attachment?
> > 
> > Piotras
> 
> Yep (well, to be honest, I didn't invent it, I got it
> from the list :-).
> But the header is meant to pop up a dialog box
> offering to save the attachment with the proper
> original file name, not with the attachment ID as
> suggested name.  Off course do not do this with
> images.
> 

I see , but it should happen only for specific file with uncommon header,
as common header should force browser to display pop up window.
For images You may simple make:
<a href="/images/&(atts.id);/&(atts.name);.jpg">
Which will force browser to save image with correct name.

Piotras

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to