-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
File upload/link from Nextcloud #120
Comments
Hello, For me is the possibilities to upload file from Nextcloud. |
I would even like the "upload file" button (in Element desktop app) to be replaced (hidden or optionally removed) by a "share file from nextcloud" button that would not upload anything to the synapse server but only gives access to a way to copy/paste a nextcloud file's share link in the chat. This should not be too difficult trick to make in Element code. |
or [ as said by plague69], better yet embed content from Nextcloud. |
And of course, ideally, it would be nice if in the file app, the share button could allow to share the file to the Element app also. I guess it is an issue to open in the files app repo. |
@gary-kim To implement this feature, does it require this work to be done #369 ? and thus, does it require either
|
As it doesn't look like neither Matrix will allow soon subpath neither will Nextcloud accept to add riotchat to rootUrlApps, could we move an other way, not as awesome as the integration Sorunome was working on but still something better than the current option. Would it be possible to replace the "Element join file" button that only let the user upload a file from his/her computer by a "Nextcloud join file" such as the one in spreed that allow the user to either upload a file from computer or share from Nextcloud (let's forget about other option). If having the choice between the two is too complicated, I'd rather have only a "share from nextcloud" button than the current "upload from computer" button. or like in mail app. I like actually more the mail app that gives three choices, upload file from computer, share file from nextcloud or paste a share link to a file |
It could be an integration of Nextcloud picker : https://github.com/nextcloud/picker |
Here is how it could look like thanks to my work on picker : https://github.com/Thatoo/picker/tree/InternalAndClipboard And once you click on "Copy file link", it copies the link and close the iframe. An idea I have to move toward a more efficient tool would be to remove all three button and to make the three options "Read", "Write" and "Internal link" becoming button that directly copy the link and close the window, and even ideally move these three buttons to the first page. However, I didn't want to be that radical in my proposal so I keep it the way it is working now and just added a new option to get the Internal link and a button to copy link and close window keeping the original button that open the file (I just renamed it to be more comprehensible). Maybe I'll work on that idea later on. |
I have been told to use skinning to modify the component from a modified element-web; https://github.com/element-hq/element-web/blob/develop/docs/customisations.md#custom-components but I don't know how to do that. I asked if it was deprecated and I have been answered : I have no idea yet what all that means. Any help would be appreciated. |
Wow, that's really exciting!
Feel free to make a PR with the draft you have right now.
We do build Element Web from source so we can easily add things during
build including in the webpack config. I should have some more time to
look at it now.
|
Thanks but I first need to end the job on Picker before making a PR here. |
@gary-kim Finally my final code is here and I'm happy with it https://github.com/Thatoo/picker/tree/one_page and my picker PR is here nextcloud/picker#47 So if you want to try it, you can git clone https://github.com/Thatoo/picker/tree/one_page into your Nextcloud apps folder, build it and then, here is the code I was using to test it in Element for Nextcloud that you could add to riotchat/js/main.js :
|
could remain in riotchat/js/main.js file. |
If you know how to add the button, we could either hope my PR get merged and invite Element for Nextcloud users to install also the picker app, or, I could make a PR if you want to include all the code of the picker app within Element for Nextcloud app. |
Nextcloud Picker app is ready to be used by Element for Nextcloud : https://github.com/nextcloud/picker/releases/tag/v1.0.11 |
With the help of @alirezadehkar here is my new PR : #681 |
Would be nice if Nextcloud files system can be tied in somehow.
Auto share link create or better yet embed content from Nextcloud
WebDav?
The text was updated successfully, but these errors were encountered: