samwilson / phpflickr

A PHP wrapper for the Flickr API, including OAuth.
https://packagist.org/packages/samwilson/phpflickr
GNU General Public License v2.0
39 stars 15 forks source link

upload not setting privacy #69

Closed tacman closed 3 months ago

tacman commented 3 months ago

 $params = [
            'title' => $title,
            'description' => $description,
            'tags' => $tags,
            'is_public' => false,
            'is_friend' => $isFriend,
            'is_family' => true,
            'content_type' => $contentType,
            'hidden' => $hidden,
        ];
        if ($async) {
            $params['async'] = 1;
        }
        dump($params);
        return $this->sendFile($photoFilename, $params);
    }

But when I upload the photo, the permissions are set to public:

https://www.flickr.com/photos/museado/53769410258/

image

tacman commented 3 months ago

I figured it out -- true/false are booleans, but it has to be 1/0.