Set embedded file header?

I force the download to process the browser by setting the title Content-dispositiontoinline;

Is there a way to customize the title this way? Currently, it looks like a browser automatically populates it with the file URL.

+3
source share
1 answer

Yes, you can specify the file name in the same way as for content-disposition: attachment, for example:

Content-disposition: inline; filename="foo.bar"

See this post for useful information about this header: How to encode the Content-Disposition header file name parameter in HTTP?

+2
source

All Articles