Home > Blog > Programming > Sharing in ownCloud 5

Sharing in ownCloud 5

August 7th, 2012

Last summer it started with file sharing, now it’s time to share everything in ownCloud! This has always been in the back of my mind and now it has become a reality.

Sharing in ownCloud 4 suffered and had a bad reputation due to many issues. File sharing was hit by a number of bugs because of changes outside of sharing, and other apps started their own implementations of sharing. It was not always a satisfactory experience for the user. It was time to rethink how sharing works. The result is the new Share API in ownCloud 5.

The goal of the Share API is to provide a consistent sharing experience across apps and give developers the tools to easily integrate sharing into their apps. This is achieved by managing the shared content of apps in a generic database and providing a sharing user interface to be used by apps. App developers only need to write a small backend class, use the functions in the Share API to retrieve their shared items, and add an anchor tag in their user interface for the sharing user interface to be triggered. I’ll share more technical details for developers wishing to use the Share API in their apps in my next post.

Users should already be comfortable with the user interface, because it is almost identical to the one found in the older versions of file sharing. The select form has been replaced with an autocomplete search textbox, which now allows you to share with not only users and groups, but also contacts and email addresses.

Unfortunately, not everything is complete. Multiple apps need to be integrated with the Share API, private links need to be implemented, and there are many problems displaying the user interface due to style conflicts in apps. Please help out by testing the share_api branch and joining me in #owncloud-dev to complete the Share API and make it bug free for ownCloud 5.

I’m also going to the openSUSE Summit to give a presentation on ownCloud! ownCloud Inc. will also be sponsoring a party there on Friday evening. Anyone else going?

Categories: Programming Tags: , ,
  1. David
    August 8th, 2012 at 05:53 | #1

    Dear Michael,

    I have a question concerning the share function in owncloud.
    If you want to share a file from the web interface of owncloud you have the option to share it directly to other users in the owncloud system.

    I there any way that you could make users only see other users that are in the same group as them and not the users from other groups?

    Regards,
    David.

  2. David
    August 8th, 2012 at 06:10 | #2

    Hey Michael,

    I just found out myself. I had the “Enable sharing with everyone” option turned on because I thought that referred to mailing share links to people.

    anyway thanx for the wonderful work you put in owncloud! ;-)

  3. August 8th, 2012 at 10:52 | #3

    This mean that the users of the News App will be able to share posts they read and like with other users and even with email address in their contacts. Do I understand it correctly? That would be fabulous!

    P.S.: maybe I should stop promising further features of the News App :P

  4. August 8th, 2012 at 11:44 | #4

    Yes, we can talk about implementing it if you’d like. I’m not quite sure how we’ll handle read status.

  5. August 8th, 2012 at 14:54 | #5

    @Michael Gapczynski
    nice!
    sorry, I guess I was confusing with that “read and like”, there is no “read” status to handle. I was just talking about the actions that the user would do. He would read a post and say: “cool, I can share it to my friends!”

  6. Dennis
    August 9th, 2012 at 07:32 | #6

    When will this feature be enabled and owncloud 5 be released? i’m so longing for the sharing feature between apps .. i’m currently running onwcloud 4.0.6 on the local disc station and the sharing function is essential for our team work.

  7. August 9th, 2012 at 11:17 | #7

    @Dennis A release date has not been set for ownCloud 5. Watch the mailing list for news.

Comments are closed.