simialbi / yii2-elfinder

This extension integrates the jQuery elFinder into yii2 framework
MIT License
7 stars 5 forks source link

google drive #21

Open paskuale75 opened 3 months ago

paskuale75 commented 3 months ago

any examples of use with google drive? thanks

simialbi commented 3 months ago

It's not yet implemented. Would you like to use it?

paskuale75 commented 3 months ago

Yes, I would really like to make it happen if it's possible. If there are instructions on how to get started I would try with some pull commits.

Il Lun 22 Lug 2024, 13:31 simialbi @.***> ha scritto:

It's not yet implemented. Would you like to use it?

— Reply to this email directly, view it on GitHub https://github.com/simialbi/yii2-elfinder/issues/21#issuecomment-2242734415, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACMSCQWHGEJUGBAQDGMALZNTURTAVCNFSM6AAAAABLG6OKK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBSG4ZTINBRGU . You are receiving this because you authored the thread.Message ID: @.***>

simialbi commented 3 months ago

I added GoogleDriveConfiguration to the master branch, but don't have tested. Change the version of elfinder to dev-master in your composer.json, so you can test it. You have to at least fill:

    'connectionSets' => [
        'default' => [ // like elfinder roots
            [
                'class' => 'simialbi\yii2\elfinder\ElFinderConfigurationGoogleDrive',
                'connection_id' => '',
                'client_secret' => ''
            ]
        ]
    ],

(according to elfinder issue comments)

paskuale75 commented 3 months ago

Thanks, I'll check it out!

Il Lun 22 Lug 2024, 15:56 simialbi @.***> ha scritto:

I added GoogleDriveConfiguration https://github.com/simialbi/yii2-elfinder/blob/master/src/ElFinderConfigurationGoogleDrive.php to the master branch, but don't have tested. Change the version of elfinder to dev-master in your composer.json, so you can test it. You have to at least fill:

'connectionSets' => [
    'default' => [ // like elfinder roots
        [
            'class' => 'simialbi\yii2\elfinder\ElFinderConfigurationGoogleDrive',
            'connection_id' => '',
            'client_secret' => ''
        ]
    ]
],

(according to elfinder issue comments)

— Reply to this email directly, view it on GitHub https://github.com/simialbi/yii2-elfinder/issues/21#issuecomment-2243028334, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACMSD43QAOEWXAFQ2SEZDZNUFQRAVCNFSM6AAAAABLG6OKK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGAZDQMZTGQ . You are receiving this because you authored the thread.Message ID: @.***>

paskuale75 commented 3 months ago

In my module init events I've a loop for create N connectionSets:

$connectionSets['pratica-' . $praticaId] = [
                    [
                        'alias' => $alias, // <== HERE
                        'class' => 'simialbi\\yii2\\elfinder\\ElFinderConfigurationGoogleDrive',
                        'client_id' => '***************-ka************ec4oukul54if6o2708c.apps.googleusercontent.com',
                        'client_secret' => '*******************'
                    ]
                ];

I clean the cache for change from filesystem to google drive but console get this to me:

elfinder_gdrive_clientid_issue

thanks

simialbi commented 3 months ago

Hmmm... Ok. I'll have a look

paskuale75 commented 3 months ago

Ok, thanks.

Il Mer 24 Lug 2024, 17:24 simialbi @.***> ha scritto:

Hmmm... Ok. I'll have a look

— Reply to this email directly, view it on GitHub https://github.com/simialbi/yii2-elfinder/issues/21#issuecomment-2248297958, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACMSDL6QRVRVTWZWYNPKLZN7BL7AVCNFSM6AAAAABLG6OKK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYGI4TOOJVHA . You are receiving this because you authored the thread.Message ID: @.***>

paskuale75 commented 1 month ago

Hi @simialbi all fine there ? Any news for me ? Thanks

simialbi commented 2 weeks ago

Hi @paskuale75

I try to fix it this week