Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Download option in File Manager #795

Closed
rocheston opened this issue Feb 28, 2022 · 9 comments
Closed

Disable Download option in File Manager #795

rocheston opened this issue Feb 28, 2022 · 9 comments

Comments

@rocheston
Copy link

How do I disable the 'Download' option in the File Manager application? I don't want users to download anything. They can upload documents though.

grab0

@andersevenrud
Copy link
Member

This is currently not possible to disable via an option. It could be added pretty easily though.

I'll have a look into this ASAP.

@hello-smile6
Copy link

Couldn't people download files using the same path as is used for HTML viewing?

@rocheston
Copy link
Author

Thanks. I want to restrict people from downloading copyrighted content.

@hello-smile6
Copy link

Thanks. I want to restrict people from downloading copyrighted content.

You'd probably want to use Youtube embeds, then. If you send the data to the browser unencrypted, someone will figure out how to get it.

@rocheston
Copy link
Author

Encrypted using Cloudflare with Argo tunnel.

@hello-smile6
Copy link

Encrypted using Cloudflare with Argo tunnel.

But it's decrypted client-side to play the video, right?

@rocheston
Copy link
Author

rocheston commented Feb 28, 2022

Make it hard for someone to figure that out. I will be hosting company videos, PDF, Word documents, configuration files, training materials, etc. I don't want the user to know you can download easily.

Just like Youtube. You can download the videos if you know the right tool like wondershare but for a normal person, there is a 'no download' button.

I understand this is not a super-duper content protection security mechanism. I simply don't want the download option in my case. I'm building a read-only portal with osjs for an internal work deployment project.

andersevenrud added a commit to os-js/osjs-filemanager-application that referenced this issue Feb 28, 2022
@andersevenrud
Copy link
Member

If you update @osjs/filemanager-application you can now to the following in your client config:

// src/client/config.js
export default {
  filemanager: {
    disableDownload: true
  }
}

Then rebuild with npm run build and the menu item should disappear.

@rocheston
Copy link
Author

Your solution totally worked. Awesome. The Download option is gone from the file manager application. Thank you, Anders. OS.js makes the best Intranet portal for organizations. What a beautiful platform. And your support is fantastic. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants