Skip to content

add hide_download option to a share #12

@engragy

Description

@engragy

hello there my friend Luffah, first of all thank for this awesome nextcloud python handler.
i just need to create a share in nextcloud that is not downloadable, and as i use this extension i am able to create the share like so.

`
nxc.create_share(path='/path/to/file/SC1-SFT-V1.txt', share_type= 3, permissions=19)

returns

{'id': '3',
'share_type': 3,
'uid_owner': 'kraytos',
'displayname_owner': 'kraytos',
'permissions': 19,
'can_edit': True,
'can_delete': True,
'stime': 1704017368,
'parent': None,
'expiration': None,
'token': 'WH48Laz46JftGwJ',
'uid_file_owner': 'kraytos',
'note': '',
'label': '',
'displayname_file_owner': 'kraytos',
'path': '/path/to/file/SC1-SFT-V1.txt',
'item_type': 'file',
'mimetype': 'text/plain',
'has_preview': True,
'storage_id': 'local::/var/www/html/data/',
'storage': 2,
'item_source': 1598,
'file_source': 1598,
'file_parent': 1215,
'file_target': '/SC1-SFT-V1.txt',
'share_with': '3|$argon2id$v=19$m=65536,t=4,p=1$OFhrSE1FS0FJN1E0c0RXeg$g9102/CuWRBQcdiw5wolAcNIDsEEldwidysz+VMY7co',
'share_with_displayname': '(Shared link)',
'password': '3|$argon2id$v=19$m=65536,t=4,p=1$OFhrSE1FS0FJN1E0c0RXeg$g9102/CuWRBQcdiw5wolAcNIDsEEldwidysz+VMY7co',
'send_password_by_talk': False,
'url': 'http://127.0.0.1:9900/s/WH48Laz46JftGwJ',
'mail_send': 1,
'hide_download': 0,
'attributes': None}
`

but i couldn't find that option 'hide_download' that i need to change even with update_share, so is there a method implemented to do this or could you guide me to where i could try to add this new functionality and i should upload this contribution.

thanks any way, your response is much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions