Anonymous sharing don't have both write and read access

I have shared a folder anonymously with team.

WIth “ready-only” option they can only download.

With “File drop” they can only upload but can’t download.

With “Allow upload and editing” they can upload,download and delete also.
But I don’t want to give delete option.

How to do that?

Hi, try to use search function of this forum: Deny deletion or renaming of certain folders
You can combine this solution with Files Automated tagging App.

Thanks for the reply @gas85 but these settings are for default folders to users.
But I want to keep settings for anonymous access.Sharing through links.

You right… My mistake, as per Files access control — Nextcloud latest Administration Manual latest documentation

Denied access

If access to a file has been denied for a user, the user can not:

Create/upload the file
Modify the files
Delete the file
Download the file
Syncronise the file with clients, such as the Nextcloud desktop and mobile clients

I did following in this case.

  1. Create robot user e.g. robo1.
  2. Share this folder with robo1 without delete permission.
  3. Under robo1 create share link with allow upload and editing.

In this case if user will try to delete something it will be forbidden by rule from point 2.
This is not protect you from the changes, e.g. user can edit file and simply delete the content of the file, you could avoid it via unset edit permission from the robo1 user.

P.S. There is a ticket to this functionality that you need:

Yeah, but you are suggesting for loggedin useres.Not anonymous acces.
Can you see this gif once.

I think this is misunderstanding. You need to have at least 2 local users to create share in this case.

  1. You have your local User - user.
  2. You have second local User - robot user, e.g. robo1.
  3. As user share locally folder with robo1 without delete permission (and you could also drop edit permission).
  4. Then login as robo1 user.
  5. Create anonymous share via Link with allow upload and editing.
  6. Share this link and users will not be able to delete files.

it will be as following:

-> user (Folder owner)
   -> robo1 (can't delete files)
      -> Shared link (with allow upload and editing)
         -> Anonymous users can't delete files because of policy set by 'user' for 'robo1'