Original file" not showing in download options despite keptOriginalFilename being set (8.1.4)

Hello, here is a problem I’m facing:

  • PeerTube version: 8.1.4

  • Docker install with NPM reverse proxy

  • « Keep original file » enabled in VOD config

  • File exists on disk in original-video-files/

  • keptOriginalFilename populated in videoSource DB table

  • Download button only shows transcoded resolutions, no « Original » option

  • Tested with a fresh upload after enabling the setting

Any idea anyone?
Thanks!

Jean-Luc

Hello,

Only the owner can download the original file. Are you logged-in with the account that published the video?

Hello,

Thanks for the clarification, I was trying as an unregistered visitor, it sure works for registered user.

Indeed, having per-video control over original file download access (owner only / registered users / public) would be a valuable addition, similar to how Vimeo handles it. Currently being limited to owner-only feels quite restrictive for instances that want to share high-quality source files openly.

Would this be worth opening as a feature request?

Jean-Luc

option for everyone to download the original video file · Issue #6698 · Chocobozzz/PeerTube · GitHub :slight_smile:

thank you :slightly_smiling_face:

Cheers,

Jean-Luc

… and actually, is it in the pipeline? It’s essentially just a permission check change. The file is already there, the DB reference is there, just need to expose it based on a config flag. Should be trivial for Chocobozzz to implement, right?

I want to add another related issue: even as the video owner/admin, downloading the original file of a password-protected video (privacy level 5) always returns 401, regardless of being logged in. The videoFileToken generated for the download is rejected, while downloading transcoded resolutions works fine.

This means the original file is completely inaccessible through the UI even to the owner, which makes the « Keep original file » feature essentially broken for password-protected videos.

Steps to reproduce:

  • Set a video to password-protected privacy

  • Enable « Keep original file » in VOD config

  • Upload a video

  • Log in as owner/admin and try to download the original file

  • 401 is returned

Jean-Luc

Thank you, it will be fixed in next version (8.2).