I force the download to process the browser by setting the title Content-dispositiontoinline;
Content-disposition
inline;
Is there a way to customize the title this way? Currently, it looks like a browser automatically populates it with the file URL.
Yes, you can specify the file name in the same way as for content-disposition: attachment, for example:
content-disposition: attachment
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?