Support the ongoing development of Laravel.io →
Configuration Packages
Last updated 2 years ago.
0

I do not see a direct function in the flysystem-dropbox to get a shareable url, but I do find a function in the dropbox-sdk which they include.

Try something like this,

$flysystemObj->getClient()->createSharableLink( $path )


// example using function createSharableLink
https://github.com/dropbox/dropbox-sdk-php/blob/master/examples/link.php

// source of createSharableLink
https://github.com/dropbox/dropbox-sdk-php/blob/f40c993fbf504bbb370b82c6c05cf633835261c9/lib/Dropbox/Client.php#L1022

// in the api docs
http://dropbox.github.io/dropbox-sdk-php/api-docs/v1.1.x/source-class-Dropbox.Client.html#1007
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.