FeatureFuel
0

Provide permissions and ownerId in PUT request when uploading a new file

Source: nextcloud/server#54088 · opened by @mpivchev
On iOS and Android we need to handle some UI after we upload a file that requires us knowing the permissions for said file. This works in already PROPFINDed files, but a new file does not get PROPFINDed immediately for performance reasons. Currently we would have to fetch the whole metadata for a directory to know the permissions of new files, which is way too expensive, especially since we have to do this for every new file (imagine uploading 500 files at once). Feature request: After a PUT request for a new file we receive the e-tag and file-id. Is it possible to also receive the permissions and ownerId through that as well? This way we would not need to request the whole metadata for current directory every time. An example would be Oc-Permissions: SVGDM and Oc-OwnerId: xxxxxxx in the header. It can also be part of the body. Use case: 1. We need permissions to determine which actions to show when a file is uploaded. Example is hiding the "Delete file" option when use…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests