Skip to content

Upload Only (File Request) for Folder Shares #467

@ms690000

Description

@ms690000

Hello,

i wrote an additional function for the share.js file in the library, with which you can set the permission of a folder to Upload Only (File Request).

Added in File "share.js" in Line 87 following Code:

setUploadOnly() { return __awaiter(this, void 0, void 0, function* () { if (this.memento.itemType === ShareItemType.folder) { yield this.client.updateShare(this.memento.id, { permissions: 4 }); } }); }

Maybe you could add this to the library.

There seems to be a bug in the OCS API, so you can change the Permission to 4 only after creating the share, and not with the Creation of the share. (See https://help.nextcloud.com/t/ocs-share-api-options-and-defining-permissions-bug/161037 and https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-share-api.html)

Best Regards,
Michael

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