spatie / flysystem-dropbox

A flysystem driver for Dropbox that uses the v2 API
https://freek.dev/734-dropbox-will-turn-off-v1-of-their-api-soon-its-time-to-update-your-php-application
MIT License
342 stars 50 forks source link

getThumbnail returning bytes not json #35

Closed paulm17 closed 6 years ago

paulm17 commented 6 years ago

Thanks for developing this plugin for flysystem.

I'm finding that $client->getThumbnail returns a stream/bytes? and not json.

If I view the $response variable I see:

[dropbox-api-result] => Array ( [0] => {
    "name": "201603_2347_bdchf_sm.jpg", 
    "path_lower": "/201603_2347_bdchf_sm.jpg", 
    "path_display": "/201603_2347_bdchf_sm.jpg", 
    "id": "id:eQBjXguYjVAAAAAAAAAAEA", 
    "client_modified": "2018-03-21T13:31:28Z", 
    "server_modified": "2018-03-21T13:31:28Z", 
    "rev": "8a0d7e690", 
    "size": 22251, 
    "media_info": {".tag": "metadata", "metadata": {".tag": "photo", "dimensions": {"height": 298, "width": 300}}}, 
    "content_hash": "0e8a8cc17ed87dcc12668657320d7cf2e0733ce9fbee1fa5fc0da9220d97842f"} )

So I know it's there. But how do I get it?

Thanks

spatie-bot commented 6 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.