nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.49k stars 4.08k forks source link

Open shared link from browser in app #16305

Open tobiasKaminsky opened 5 years ago

tobiasKaminsky commented 5 years ago

Idea is that you click on a shared link (maybe got it from mail) and this opens up browser on mobile/desktop. Browser then detects this and asks to open it in app. It pass nc://shownode/server:cloud.example.org&shareToken=ASDFWASD&fileId=123 to mobile/desktop.

On client, we check if we can access the file, or have it shown anonymous:

if (same account)
  if (file id exists)
    show internal
  else 
    #show unauth: 
    if query shared token
      check if password and ask for it
    else 
      show error (internal link was clicked, but not shared)
    fi
  fi
else 
  show unauth: query shared token, check if password and ask for it
fi

webdav request on protected link: user: shareToken pass: password

Next step:

marinofaggiana commented 5 years ago

@tobiasKaminsky yes, it's a good feature for me

major-mayer commented 5 years ago

I was about to write almost the same feature request when I saw this one :) It would be a great feature and would be a workaround for the problem, that Firefox mobile users have with uploading multiple images (its not possible). It quite a pain, to upload 20-30 images all one by another. BTW, Google does this the same way for their Google drive app, but there it is mandatory to download the app, if you want to upload files to a public /private folder.

szaimen commented 3 years ago

I suppose this issue is still valid? If not, please close this issue!

major-mayer commented 3 years ago

The Firefox issue is resolved, but the idea to be able to open shared links within the Nextcloud app, as it is already possible for internal links, is still a good one I think.

tobiasKaminsky commented 2 years ago

@skjnldsv as we are doing the client side now, can we schedule/add this to server board? :)

tobiasKaminsky commented 2 years ago

@jancborchardt to add info on server side, as dicussed in client call yesterday

jancborchardt commented 2 years ago

There will be a new link in the server, last entry of the 3-dot action menu in the share link page:

Sync share with [desktop client / Android app / iOS app ]

Like so: image

For what happens on click, see https://github.com/nextcloud/files-clients/issues/9#issuecomment-1004921911