Closed lubosan80 closed 3 years ago
Is "/files/" the same for all mattermost installs?
Any reason that you dup the mem then free it, rather than just reusing the existing memory?
I think yes. First this url is used in plugin already and according to aip/v4 which the plugin is using it should work. https://api.mattermost.com/#tag/files/paths/~1files~1{file_id}/get
Well maybe I had during the testing but now definitely I don't. Removed the strdup in last commit.
When there is no uri on mmfile set one. It works pretty well in my environment where we have server without public links. It presents the direct link onto the file which is more comfortable than opening the whole web client I think.