NextCloud 31.0.2 sharing video broken if download function disabled

The Basics

  • Nextcloud Server version (e.g., 31.0.2):
    • 31.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24
  • Web server and version (e.g, Apache 2.4.25):
    • Apache
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • PHP 8.4.5
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • When upgraded from 30.x to 31.0.2 stable
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • web upgrade
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Sharing a video by disabling the download function made the video never loads.

Steps to replicate it (hint: details matter!):

  1. Upload a video as file
  2. Share with a link that hide the download
  3. Open the shared link using an incognito unauthenticated mode
  4. Result: the shared video never loads

Bug Issue reported on GitHub: [Bug]: Shared video with download hidden are not played. NextCloud 31.0.2 · Issue #51938 · nextcloud/server · GitHub

Currently seems I will be unable to share videos by hiding download buttons. As I don’t want video get downloaded I will need wait for a fix.

If anyone have some suggestion, here I’m.
Thank you!

Also with disabled download button the user can download the video with add /download to the link e.g. https://cloud.server.tld/s/abcdefghijklmno/download.

In principle, you cannot prevent the download as the video is played locally in the browser.

This seems has changed with the nextcloud 31, if the download button is disabled also the download give json error.

I can see I’m unable also to access next cloud from mobile. Seems upgrade to version 31 cause issues. Mmm from mobile it’s just a cache issue.

Cool. Thanks for the info.
"Share has no download permission"

Maybe you can use browser dev tools (F12) for more details.

I have tried to recreate the problem in Nextcloud 31 with a very small video (700 kb). I could not reproduce the error. But I have problems with the Guests app. Then it doesn’t work at all. Do you use the app Guests? Can you disable or uninstall the app Guests? Sometimes there are side effects with other apps. Perhaps you can uninstall a few manually installed apps as a test.

I don’t use the guest app.
This is a shared video of test that doesn’t work NextCloud_TestVideo.mp4 - Marco Borla Cloud

In browser dev tools (F12) i get HTTP 403 Forbidden for the path/url of your server /nxtc/public.php/dav/files/sRMM3ParPSwHJcd/. Maybe someone can help. Maybe an issue for GitHub.

You can test the standard PHP version from Ubuntu 24.04 LTS. But i think that does not help.

System Requirements Nextcloud 31

In your test have you disabled manually the download? Because when sharing as only read the download function still be flagged when should be not. If the download is allowed then the video is visible.

For now I will use a custom CSS for hide the multiple download

/* NextCloud 31 fix download file */
.public-page-menu__wrapper {
	display: none !important;
}
.button-vue.button-vue--size-normal.button-vue--icon-and-text.button-vue--vue-secondary.action-item.action-item--single.files-list__row-actions-batch-download {
	display: none !important;
}
.action.files-list__row-action-download {
	display: none !important;
}
#trigger-menu-uwthl {
	display: none !important;
}
.header-actions.action-item.action-item--default-popover.action-item--tertiary {
	display: none !important;
}

It also happens, when you share it with an internal account, needn’t to generate a share-link. The 31.0.2 is the first version what is tried ever and i didn’t know that this is a bug or a feature.

Before the version 31.0.2 I was using the version 29.XX and hide the download option just hide the download button. I was hoping in a new version that can forbid the download and 31.0.2 seems is doing this job but if you activate the hide download the video cannot be played.

I think it’s a bug because has no sense block the download and even the play of a video. For now I’m using a CSS to hide all download buttons and when I share a video I need keep the option to download the video on… also if I don’t wanna the video can be downloaded.

So in the version before 31.0.2 the hide download was just hiding the button for the download but shared video can be played. Experts user was also able to download even if the button was hide. It’s not so hard.

In the version 31.0.2 there is a try to forbid the download but this should be not broke the fact video cannot be anymore played.

Will see in the next Nextcloud version what will happen :blush:

Which CSS file?

I use the Custom CSS app.

1 Like

The issue has not been resolved in version 31.0.3 either…

Thanks for this info. And the app notes works? I can see flagged as incompatible with Nextcloud 31.0.3 this prevent me from upgrading.

It was okay for me :slight_smile: The iOS app has since been updated.

Issue still present in NextCloud 31.0.4?
Seems the issue still be present for me.

2 Likes

I also confirm that I have the same problem as you on Nextcloud 31.0.4

2 Likes

Unfortunately, yes… :frowning: