---
title: "Displaying Files in the Browser Rather Than Downloading"
slug: "how-do-i-force-files-like-pdf-or-jpeg-to-be-displayed-directly-in-the-browser-instead-of-being-downloaded"
updated: 2026-02-17T16:48:20Z
published: 2026-02-17T16:48:20Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wasabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Displaying Files in the Browser Rather Than Downloading

You can force files (such as PDFs or JPEGs) to display directly in the browser rather than being downloaded.

If you have a link to an image or a file that you want to open within the browser rather than download to your local machine, you may need to edit the metadata on the file to indicate that this should happen. The property named Content-Disposition controls this. If it is set to:

- `attachment`, the file will be downloaded
- `inline`, the file will be displayed within the browser

Although this may be subject to settings on some browsers, this is the basic setting you should check. Refer to [Content-Disposition header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) for more information.

To see or edit the attributes, you will need an S3 application that makes them visible, such as:

- [Wasabi Explorer](https://docs.wasabi.com/docs/wasabi-explorer)
- [S3 Browser](https://docs.wasabi.com/docs/how-do-i-use-s3-browser-with-wasabi)

## Wasabi Explorer

In Wasabi Explorer, the page is:

![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/sk1hpy2duknqrfmwvb44amceclip0.png)

Click **Set HTTP Headers**to access a screen that enables you to add, edit, or delete these attributes.

![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/jropqo010ksw9zb1l0qqwmceclip1.png)

In the example above, the HTTP Header **Content-Disposition**is set as **inline.**You can edit this to **attachment**to change the behavior.

If you cannot find **Content-Disposition**in the list of headers, create one.

## S3 Browser

In S3 Browser, the page is:

![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/image-DOEU1K0T.png)

In the example above, the Header **Content-Disposition**is set as **inline**. You can edit this to **attachment**to change the behavior.

If you cannot find **Content-Disposition**in the list of headers, create one.
