This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

contactredch58134
contactredch58134

In October CMS I am using the 'Builder' plugin for the backend. And for using image uploads I have to add 'File Uploads' in form and I have to add 'field name'. Then in /plugins/me/myplugin/models/MyPlugin.php I have to specify before written 'field name' like this.public $attachOne = [ 'myfield' => 'System\Models\File' ];.Here I see that it uses 'System\Models\File' and when I am uploading image it uses storage/app/uploads/ directory.

So for setting up October CMS with Cloudinary I tried that.

Firstly installed it through composer with:

composer require cloudinary/cloudinary_php

In config/filesystems.php changed 'default' => 'local' to 'default' => 'cloudinary', and in disks I added 'cloudinary' like this:

'disks' => [ 
    'cloudinary' => [
        'driver' => 'cloudinary',
        'api_key' => env('MY_CLOUDINARY_API_KEY'),
        'api_secret' => env('MY_CLOUDINARY_API_SECRET'),
       'cloud_name' => env('MY_CLOUDINARY_CLOUD_NAME'),
    ] ]

Then in config/cms.php I saw that in comments: uploads - generated by attachment model relationships.

Thats why I thought I should also change this somehow:

'storage' => [

'uploads' => [
    'disk'            => 'local',
    'folder'          => 'uploads',
    'path'            => '/storage/app/uploads',
    'temporaryUrlTTL' => 3600,
],

], I tried change 'disk' and 'folder' section, deleting 'path' and after that when I try to upload image October says that

Upload error Driver [cloudinary] is not supported. I clearly understand that I started setting up October CMS and Cloudinary incorrect from the beginnig. :D Please, If you know how to set up this correctly, how to set up October CMS with any other Cloud for downloading images, help me. Thanks!

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.