# Disable upload and download of files

**URL:** https://discourse.openondemand.org/t/disable-upload-and-download-of-files/3042
**Category:** Get Help
**Tags:** question
**Created:** [October 23, 2023, 10:11pm UTC](https://discourse.openondemand.org/t/disable-upload-and-download-of-files/3042 "2023-10-23T22:11:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dmorand17](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/dmorand17/32/1851_2.png) [@dmorand17](https://discourse.openondemand.org/u/dmorand17)
#### Post date: [October 23, 2023, 10:11pm UTC](https://discourse.openondemand.org/t/disable-upload-and-download-of-files/3042/1 "2023-10-23T22:11:27Z")

</div>

I’ve been encountering issues trying to disable the ability to upload/download files from the Files app.

**Uploads**

I’m referencing the documentation [here](https://osc.github.io/ood-documentation/latest/customizations.html#set-upload-limits) which indicates you can set the `FILE_UPLOAD_MAX` to 0. When I tried this I was still able to upload files. I then changed it to ‘1’ and it appears to be working. Is this to be expected?

**/etc/ood/config/apps/dashboard/env**

```auto
FILE_UPLOAD_MAX=1

```

**Downloads**

I’ve been following the docs [here](https://osc.github.io/ood-documentation/latest/customizations.html#set-download-limits) but am unable to get downloads to be disabled. Again I had to set `OOD_DOWNLOAD_DIR_MAX=1` to get this to work but realized this is only working on folders.

Is it to be expected that this setting is only for folders? If so, is there anyway to stop users from downloading files?

**/etc/ood/config/apps/dashboard/env**

```auto
OOD_DOWNLOAD_DIR_MAX=1

```

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [October 24, 2023, 1:28pm UTC](https://discourse.openondemand.org/t/disable-upload-and-download-of-files/3042/2 "2023-10-24T13:28:19Z")

</div>

> [@dmorand17](#):
>
> Is it to be expected that this setting is only for folders? If so, is there anyway to stop users from downloading files?

I believe it was originally a limit on sizes, not functionality. Which is to say - yes it is a setting for only folders and only for downloads.

I don’t believe we have the capability to disable downloads altogether without disabling the files app entirely.

---

<div class="post-metadata">

### Author: ![dmorand17](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/dmorand17/32/1851_2.png) [@dmorand17](https://discourse.openondemand.org/u/dmorand17)
#### Post date: [October 24, 2023, 1:49pm UTC](https://discourse.openondemand.org/t/disable-upload-and-download-of-files/3042/3 "2023-10-24T13:49:45Z")

</div>

Thanks @jeff.ohrstrom appreciate the update. I found [this](https://discourse.openondemand.org/t/option-to-enable-or-disable-file-transfers-in-the-file-manager-restrict-who-can-upload-or-download-data/2381/2) thread about allowing upload/download permissions by group which I’ve subscribed to those Github issues.

I’m trying to lock down this particular OOD instance to ensure that data resides within the system, and not allow users to upload/download any data. Are there other ways users are achieving this?

Are there details on how to remove the Files app? I checked [this](https://discourse.openondemand.org/t/is-possible-to-restrict-or-limit-the-access-to-the-files-app/2040/9) thread but I’m not able to find the reference to the system installed apps?

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [October 24, 2023, 1:59pm UTC](https://discourse.openondemand.org/t/disable-upload-and-download-of-files/3042/4 "2023-10-24T13:59:10Z")

</div>

> [@dmorand17](#):
>
> Are there details on how to remove the Files app?

You use file permissions on the folder `/var/www/ood/apps/sys/files` (I pulled that path from memory, so please verify). Change it to 700 to disable it or 750 with a specific group to give group membership.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)
#### Post date: [April 21, 2024, 1:59pm UTC](https://discourse.openondemand.org/t/disable-upload-and-download-of-files/3042/5 "2024-04-21T13:59:13Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
