Content-Disposition Header

From Null-pointer

Jump to: navigation, search

The Content-Disposition header field is used to specify whether to open an attachment inline or as an attachment by presenting a save dialogue box. It is also used to specify a suggested filename for an attachment.

For example:

response.setHeader( "Content-Disposition", "inline; filename=" + filename );
Personal tools