rainloop-nextcloud icon indicating copy to clipboard operation
rainloop-nextcloud copied to clipboard

Upload files from Nextcloud in the Rainloop mail Nextcloud 24.*.*

Open lixxdee opened this issue 3 years ago • 2 comments

hello everyone! I have been looking for solutions for a long time on how to upload files from Nextcloud in the Rainloop mail. Could you please update app rainloop compatibility with Nextcloud 24 with the ability to upload files? Or give advice on how to do it?

lixxdee avatar Jun 23 '22 09:06 lixxdee

Hi @lixxdee you can found some code to do it here: https://github.com/pierre-alain-b/rainloop-nextcloud/issues/42#issuecomment-633115762

But you need to create and replace the app.ja and app.min.js files.

Bolli84 avatar Jun 29 '22 03:06 Bolli84

_proto.dropboxCommand = function dropboxCommand() {
var _this4 = this;
parent.OC.dialogs.filepicker(
'Choose a file to add as attachment',
function (path) {
var size = 0;
var name = path.substring(path.lastIndexOf("/") + 1, path.length);
var password = prompt("Password please:");
for (var i = 0; i < parent.OC.dialogs.filelist.length; i++) {
if (parent.OC.dialogs.filelist[i].name == name) {
size = parent.OC.dialogs.filelist[i].size;
var ncurl = parent.OC.getProtocol() + "://" + parent.OC.getCurrentUser().uid + ":" + password + "@" + parent.OC.getHostName() + "/remote.php/dav/files/" + parent.OC.getCurrentUser().uid + encodeURI(path);
var dropboxFile = { link: ncurl, bytes: size, name: name };
_this4.addDropboxAttachment(dropboxFile);
}
}
return true;
};

Nextcloud 24 - rainloop, don't work for me.

Does this code work for anyone in Nextcloud version 24? Can anyone post a working file to replace the current rainloop files in order for the download function to work in the mail client?

webagroprom avatar Jul 01 '22 14:07 webagroprom

I recommend that you take a loot at snappymail being ported to Nextcloud. Snappymail is maintained unlike Rainloop that seems not to be anymore. https://github.com/the-djmaze/snappymail/issues/96

pierre-alain-b avatar Oct 14 '22 04:10 pierre-alain-b