-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow to hide "hidden files" on public shares #39027
Comments
cc @nextcloud/server-frontend |
Just ran into this myself when setting up files to be shared with some clients, the Readme.md had an attatched image which auto generated an A workaround is to install the "Custom CSS" app and add the following rule: #body-public tr.hidden-file { display: none !important; } |
I can confirm that the workaround is effective. I just installed the Custom CSS app, added the rule, refreshed the page, and hidden files are no longer visible through public links. However, if you download all files by clicking the icon in the right corner 'Download All Files', hidden files are still downloaded. It would be good if they could be ignored at all on public links, but it may not be possible to do this on the Nextcloud side. Therefore, I am working on a solution for the Apple side, as these hidden files seem to be generated only on Mac computers through Samba. MacOS generates a hidden file starting with ._ for every single file or folder copied, and the clients are getting confused by the name of the file. They can't recognize that the file has 4Kb and starts with "._". Since these files are not hidden in Windows, I always receive emails complaining about "The video is corrupted, is not playing, I can't open it." For that matter, it would be nice to have a way to ignore those hidden files, if not every . file, maybe every ._ file, on the Nextcloud side, as they are rarely useful for the end user. One would be surprised by how all those simple computer tasks could be very non-obvious for most people. About the "Hidden Files Bug" topic, I don't know if this is actually a Bug or if it's expected behavior, but this custom solution closes it for me. Thank you very much! |
i think im also experiencing this after upgrading from 23 to 28, hidden files are shown in a public share. tried forcing the user-setting |
looking at other issues, its not fixed by #42023 which was in 28.0.0, and im on 28.0.3. |
Public shares do not have a user so there is no way for a receiver to configure if they want to see dot files or not. So currently they are always shown. |
well, i beg to disagree, public shares are linked to the user creating the share, so imo it should obey that user setting wrt hidden files... and i dunno if it was by accident, but on 23 it was working fine, ie hidden files/dotfiles weren't shown at all in a public share. |
Yes but all files are shared with unknown users (public), when hiding there is no way for those users to enable "show hidden files". |
But this is still not fixed or implemented, so reopen. |
i agree with you, but in that case i think it should obey the originating user setting, which might not want end users browsing his public share to see his hidden files he might have hidden on purpose. In my case, the hidden files feature is used via I havent looked at the backend code sending the list of files in the public share, but to me the list should filter hidden files if the originating user has |
This comment has been minimized.
This comment has been minimized.
As you can see this is still open. So please just use the 👍 reaction on the initial post to vote for this feature. |
This is a feature request:
Allow users to hide dot files on public shares, this could either be a per share config or a view option on the public share itself.
Original report:
Description
Hidden files visibility can be configured through the gear icon, at user Files App. On public shared links, hidden files are always visible.
Few months ago I've had this issue also in Internal Links/User interface, in Grid Mode, but updating my Nextcloud system solved the issue.
Steps to reproduce
Expected behavior
Hidden files should be hidden, specially in public links. It was working before in older versions of Nextcloud, then suddenly hidden files became visible in grid mode and public links, after an upgrade to 25, now after upgrading all the way to latest stable 27.0.0, hidden files are in fact hidden when user is logged in, list or grid mode, but hidden files are still visible in public links.
Installation method
Community Docker image
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
How do feature requests work?
If you also want this feature, please leave a 👍 reaction on this post. We try to implement the most requested features.
Otherwise we also welcome contributions.
The text was updated successfully, but these errors were encountered: