Skip to content

Support default file action registration #748

@jvdp

Description

@jvdp

Describe why it is important and where it will be useful

I'm working on integrating IronCalc for editing XLSX files with Nextcloud and while it's cool that I can add things to the files actions menu, the default action is still 'download.'

Describe your proposed solution

An extra field added to https://docs.nextcloud.com/server/stable/developer_manual/exapp_development/tech_details/api/fileactionsmenu.html#register like "default": true | false.

Describe alternatives you've considered, if relevant

Not aware of any viable alternatives, besides creating an additional app just to do this in PHP directly. Or is there a way to inject a piece of PHP in an ExApp?

Additional context

PS. sometimes (seemingly randomly) my file actions aren't showing up. Is this a known bug? There's no errors I can see. It happens most with Chrome inspector open with disable cache.
PPS. I think "mime": "file" doesn't work; when I use that my actions never show up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions