Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce open url files with system actions #10004

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ export const useFileActions = ({ store }: { store?: Store<any> } = {}) => {
return []
}

// enforce open url files with system actions
if (options.resources[0].extension === 'url') {
Copy link
Contributor Author

@AlexAndBear AlexAndBear Nov 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.url files will have 'application/ocet-stream' as mimetype. Which is assigned to Collabora and OnlyOffice, therefore url files will be opened with respective editors.

We might fix it in the frontend with this code or need to ask OCIS to return another mime-type like
text/url

Backend solution would be here:
cs3org/reva#4344

return []
}

const resource = options.resources[0]
const { mimeType, webDavPath, fileId } = resource
const driveAliasAndItem = options.space?.getDriveAliasAndItem(resource)
Expand Down