Spread the love

Using the content-disposition header property, we can tell the browser if to download or to show image in browser:

“content-disposition: attachment” will download the file while “content-disposition: inline” will display the file in the browser if supported.