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

FileActions : allow to register multiply mime types at once #95

Closed
bigcat88 opened this issue Oct 18, 2023 · 0 comments · Fixed by #144
Closed

FileActions : allow to register multiply mime types at once #95

bigcat88 opened this issue Oct 18, 2023 · 0 comments · Fixed by #144
Assignees
Labels
enhancement New feature or request

Comments

@bigcat88
Copy link
Member

Describe why it is important and where it will be useful

While writing an example of an archiver in Go, I encountered a problem that it would be convenient to specify several mimetypes for one endpoints at once.

Could we do this little breaking change before we go too far?

Describe your proposed solution

"fileActionMenuParams": Payload{
    "name":           "unpack",
    "display_name":   "Unpack",
    "mime":           []string{"application/gzip", "application/7z"},
    "permissions":    31,
    "action_handler": "/unpack",
},

Change "mime" from string to list.

Describe alternatives you've considered, if relevant

None

Additional context

No response

@bigcat88 bigcat88 added the enhancement New feature or request label Oct 18, 2023
bigcat88 pushed a commit that referenced this issue Dec 5, 2023
Resolves: #95

- [x] Add support of multiple mimes in filesplugin
- [x] Rename UI tables for naming consistency

---------

Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants