General > General Discussion
File Transfer From Chat
(1/1)
icuser:
Is there any plan to incorporate the ability to transfer files to a chat participant?
Dmitriy Simushev:
Such ability can be implemented as a plugin for Mibew 2.0 by one of third-party developers. It should not be included in the core.
The bad news are I cannot see any of third-party developers near here. If you are a developer we (developers of the core) could guide you how to create such plugin, but do not ask us to make it for you.
m19830507:
--- Quote from: Dmitriy Simushev on February 23, 2015, 10:16:55 PM ---Such ability can be implemented as a plugin for Mibew 2.0 by one of third-party developers. It should not be included in the core.
The bad news are I cannot see any of third-party developers near here. If you are a developer we (developers of the core) could guide you how to create such plugin, but do not ask us to make it for you.
--- End quote ---
please guide me how to create such plugin
lisawdegregorio:
--- Quote from: Dmitriy Simushev on February 23, 2015, 10:16:55 PM ---Such ability can be implemented as a plugin for Mibew 2.0 by one of third-party developers. It should not be included in the core.
The bad news are I cannot see any of third-party developers near here. If you are a developer we (developers of the core) could guide you how to create such plugin, but do not ask us to make it for you.
--- End quote ---
Can you provide specific guidance?
Dmitriy Simushev:
Well, here are some thoughts about such plugin.
First of all you have to create a button in the chat window for AJAX-like file uploading. Next you should define a route for processing uploaded files. After that a custom plugin message with file link should be sent to chat thread.
In details:
- For AJAX-like files uploading search the Google.
- For buttons in chat window check https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/chat/models/controls/history.js, https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/default/collections/controls.js and https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/chat/modules/chat.js
- For custom routes see https://github.com/Mibew/first-message-plugin/blob/master/routing.yml
- For sending messages see https://github.com/Mibew/mibew/blob/master/src/mibew/libs/classes/Mibew/Thread.php#L893
That's all I can help you.
Navigation
[0] Message Index
Go to full version