We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello
It would be a great enhancement to prevent right click on shared file when "hide download" is on
It can be as simple as adding this js to the file apps/files_sharing/js/public.js
//prevent right-click when download is hidden if (hideDownload === 'true') { document.addEventListener("contextmenu", function(e){ e.preventDefault(); }, false); }
Or this code (using JQuery)
//prevent right-click when download is hidden if (hideDownload === 'true') { $(document).on('contextmenu', function () { return false; }); }
I know the user is still able to bypass that but at least it is not that easy to download a file
I know also here we prevent the right click on the whole page (because of document), you can narrow it down to the exact div if you know which one).
document
At least it works
Has something like this a chance to be implemented in mainline ? So everyone will get this functionality.
All the best
Arnaud
The text was updated successfully, but these errors were encountered:
@leviia that's awesome. Can you mention this issue directly on right click app repo...
Sorry, something went wrong.
Done for 31 nextcloud/viewer#2482
No branches or pull requests
Hello
It would be a great enhancement to prevent right click on shared file when "hide download" is on
It can be as simple as adding this js to the file apps/files_sharing/js/public.js
Or this code (using JQuery)
I know the user is still able to bypass that but at least it is not that easy to download a file
I know also here we prevent the right click on the whole page (because of
document
), you can narrow it down to the exact div if you know which one).At least it works
Has something like this a chance to be implemented in mainline ? So everyone will get this functionality.
All the best
Arnaud
The text was updated successfully, but these errors were encountered: