The Basics
- Nextcloud Server version: 30.0.8
- Operating system and version: Debian 12 (bookworm)
- Web server and version: Apache 2.4.62-1~deb12u2
- Reverse proxy and version: HAProxy 2.8.3-86e043a on pfsense 2.7.2
- PHP version: 8.1.21
Summary of the issue you are facing:
I’m trying to share a Videofile via Api which works well with standard options: I can open the link an watch the video.
But, if i use the “scope:permissions, key:download, value:false”-thing, i cannot watch the video anymore. It should be watchable, but there should be no download-button.
If i share instead the folder which is containing the video with these options, i can download the content of the folder as a zip file, but i cannot watch the video. In my eyes an error.
I would simply have the possibility to set the same settings, that are available in nextcloud. Here we have a “Hide Download” Checkbox, that sends a PUT to /ocs/v2.php/apps/files_sharing/api/v1/shares/SHAREID with hideDownload:“true” - but if i try this in my script, i get the error 400 “An incorrect or no update parameter was specified”
The hideDownload-Option seems not to be an available option in OCS Share API
I’ve already read the discussions about the usefulness of hiding downloads, so I don’t want to rehash that again. I just want to be able to set the same settings via API as is possible directly in the sharing GUI. Is there a way to do this, or do I have to create my own app?