ownCloud unsharing plugin

While reviewing ownCloud features, to get better view on its pros and cons, I realized that sharing feature has one serious drawback. To share a file or a folder you hover over it, click “share” and configure all details. The issue is that there is no single view of all shares, if you forget what actually you are sharing you need to browse through hierarchy of folders and check their status one by one. To solve this problem I made up simple plugin that gives single view of resources to unshare.

What that application does is rendering of simple list of files and folders that are shared by currently logged in user. For each file full path is visible (clicking on it jumps into its parent directory to allow sharing reconfiguration), expiration settings and “x” button for quick unshare. This is it.


What you need to do is to download package (compatible with for ownCloud 4.5.x) unpack files_unsharing into owncloud/apps folder, and enable application in settings/admin section. After that operation additional left-side menu should appear. If you want your localized version (except for Polish and English), go to owncloud/apps/files_unsharing/l10n and copy pl.php file into new one with name based on desired language acronym (e.g. de.php for German) then open it and translate labels as you wish.

Disclaimer: this is version 0.1 which means it is very trivial in behavior and imperfect from development perspective; I am neither webmaster, PHP geek nor ownCloud contributor. As I feel more confident in coding so that part is much better than visual approach :] E.g. this plugin depends on core API (OCP\Share and other PHP classes) instead of direct database queries while HTML/CSS part is shameful, works though.

Download: owncloud-unsharing-v0.1.tar.gz

This entry was posted in Software and tagged , , , . Bookmark the permalink.

5 Responses to ownCloud unsharing plugin

  1. Kevin says:

    After reading your article about ownCloud and its pros and cons I was poking around and found this, are you considering adding this to oC’s github and having it pulled?

    I could really use this feature and I am going to install this to test. Again thanks!

    • andy says:

      Kevin, I dropped an email on github OC forum asking commiters to take it and include if they will. Now it is up to them, I think they have more holistic view on sharing/unsharing, so my plumbing code does not fit (yet works at least for me).

      • Kevin says:

        I went ahead and did some modifications for oC5, came up with an error on line 24 of templates/main.php, simply commented it out. Did a few other tweeks to show the file path, for some reason in oC5 it wouldn’t show it unless hovered over.

        I’d recommend adding your app to apps.owncloud.com, might get higher visibility.

        Going to keep playing with it and see what else I can add. I’ll be honest I’m a beginner with php but I’ve been reading up and hopefully become more proficient.
        Also are you on Github?

        Again thanks a bunch, this has made my life easier!

  2. Tracy Conley says:

    Where can i get the update you did to make it compatible with 5. i install and activated the module but when i click on the link I just get a message back server error.

    • andy says:

      I do not know – this one I made myself and I am still on OC4.x. I had hope OC5 gives such functionality. When I move to OC5 then probably I will update it.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.