Similar to how Hubzilla and Misskey integrate a small cloud drive, this would be a nice add-on for Akkoma.
I don’t think it makes much sense to integrate into the core though, so I looked at external options.
There is a nice lightweight WebDav server called Karadav that at least for me ticks all the boxes.
I installed it yesterday and with some minor caveats it is working great. I also wrote a small php script for it based on the Ejabberd akkoma integration to allow using the Akkoma accounts with it. I’ll test it a bit more and then share here.
Ultimately it would be nice if I could also add a small sidebar widget or so to Akkoma-fe to allow interacting with this WebDAV storage directly from Akkoma. Let’s see if I can find a good option for that.
This works if Akkoma is on the same server. Linking to a remote server is also possible, but if you leave the local network it is strongly recommended to use https:// in the $url parameter as otherwise the credentials are transmitted in (b64 scrambled) clear-text.
No idea if this is good practise or even good php code, but it works (might need php8.x though). The idea is based on the Ejabberd auth script from the official Akkoma documentation.
I am still having some issues with CORS for accessing the webdav storage through an external JS client and the Android Nextcloud app is also still not accepting my Karadav server (probably some .well-known missing?) but I got a lot of nice other Webdav apps to work with it already.