muratbayan / mattermost-file-blocker Goto Github PK
View Code? Open in Web Editor NEWA Mattermost plugin for administrators to manage allowed file attachment types
License: Apache License 2.0
A Mattermost plugin for administrators to manage allowed file attachment types
License: Apache License 2.0
I couldn't get the creation of files with the Collabora (https://github.com/CollaboraOnline/collabora-mattermost) plugin to work, while this plugin is enabled. Regardless of the settings, the following is logged:
error [2023-03-13 20:20:59.229 +01:00] Session retrieval error caller="app/plugin_api.go:976" plugin_id=com.github.muratbayan.mattermost-file-blocker error="GetSessionById: We encountered an error finding the session., " detailedError=
error [2023-03-13 20:20:59.230 +01:00] Failed to upload the template file. caller="app/plugin_api.go:976" plugin_id=com.collaboraonline.mattermost Error="DoUploadFile: File rejected by plugin. File Blocker plugin - There was an error retrieving the session information"
Hi,
Would it be possible to update this code to only affect mobile uploads and ignore desktop ones?
I was thinking the Context instance that's passed to FileWillBeUploaded would have a UserAgent parameter that should tell if something is mobile or not?
https://pkg.go.dev/github.com/mattermost/mattermost-server/v5/plugin#Context
Thanks!
Plugin cannot be installed. Tried windows app & web. Error message in UI: Invalid response from server. Other plugins install w/o problem.
Server: Mattermost 6.1.0 Debian / MySQL
Add the ability to define a list of LDAP Groups (Mattermost Groups) for which users are allowed to attach files
The additional fields in v1.1.0 (allow guest uploads and mobile uploads) should be reflected in the readme.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.