You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In embed mode, the "Copy link and password" button text has been changed to "Share link(s) and password(s)".
4
+
When sharing links in embed mode, a new event `owncloud-embed:share-links` is now emitted that contains an array of objects with the link URL and optionally the password (when the "Share link(s) and password(s)" button is clicked).
5
+
This allows parent applications to handle both the link and password programmatically.
6
+
7
+
DEPRECATION NOTICE: This deprecates the `owncloud-embed:share` event. The existing event continues to be emitted for backward compatibility.
Copy file name to clipboardExpand all lines: docs/embed-mode/_index.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,14 @@ To maintain uniformity and ease of handling, each event encapsulates the same st
35
35
| Name | Data | Description |
36
36
| --- | --- | --- |
37
37
|**owncloud-embed:select**| Resource[]| Gets emitted when user selects resources or location via the select action |
38
-
|**owncloud-embed:share**| string[]| Gets emitted when user selects resources and shares them via the "Share links" action |
38
+
|**owncloud-embed:share**| string[]|**DEPRECATED**: Gets emitted when user selects resources and shares them via the "Share links" action. Use `owncloud-embed:share-links` instead. |
39
+
|**owncloud-embed:share-links**| Array<{ url: string; password?: string }> | Gets emitted when user selects resources and shares them via the "Share link(s)" or "Share link(s) and password(s)" action. Each object contains the link URL and optionally the password (when shared with password). |
39
40
|**owncloud-embed:cancel**| null | Gets emitted when user attempts to close the embedded instance via "Cancel" action |
By default, the Embed mode allows users to select resources. In certain cases (e.g. uploading a file), this needs to be changed to allow selecting a location. This can be achieved by running the embed mode with additional parameter `embed-target=location`. With this parameter, resource selection is disabled and the selected resources array always includes the current folder as the only item.
|`owncloud-embed:share` event | November 12, 2025 | Use `owncloud-embed:share-links` event instead |[PR #13296](https://github.com/owncloud/web/pull/13296)| New event provides structured data with both URL and optional password |
0 commit comments