-
Notifications
You must be signed in to change notification settings - Fork 18
Description
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