Code Monkey home page Code Monkey logo

Comments (3)

Askancy avatar Askancy commented on July 4, 2024

Doing further research:

VM1292:1 GET https://project.it/ckfinder/connector?command=GetFiles&lang=it&type=Gallery&currentFolder=%2F1%2F&hash=2a12bd16454bdc38 500

log error:

cURL error 6: Could not resolve host: projectnet.s3.ams3.amazonaws.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) {"url":"https://project.it/ckfinder/connector","precedente":"https://project.it/admin/articoli/add","input":{"command":"GetFolders","lang":"it","type":"Gallery","currentFolder":"/","hash":"2a12bd16454bdc38"}}

Error executing "PutObject" on "https://projectnet.s3.ams3.amazonaws.com/gallery/"; AWS HTTP error: cURL error 6: Could not resolve host: projectnet.s3.ams3.amazonaws.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) {"userId":2,"exception":"[object] (Aws\\S3\\Exception\\S3Exception(code: 0): Error executing \"PutObject\" on \"https://projectnet.s3.ams3.amazonaws.com/gallery/\"; AWS HTTP error: cURL error 6: Could not resolve host: projectnet.s3.ams3.amazonaws.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) at /var/www/vhosts/project.it/httpdocs/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php:195)

how come it sets as amazonaws endpoint and not digitaloceanspaces, as set by filesystem config and ckfinder config?

I found this as well: ckfinder/ckfinder#340

but I don't quite understand what to do, i put IF control as said by the user in

\vendor\ckfinder\ckfinder-laravel-package_connector\Backend\BackendFactory.php

to line 206, without solving the problem...

from ckfinder-laravel-package.

bmlotek avatar bmlotek commented on July 4, 2024

Hello, do you still have the problem?

from ckfinder-laravel-package.

Askancy avatar Askancy commented on July 4, 2024

Hi bmlotek,

Given the poor support I have dropped ckfinder, preferring alexusmai/laravel-file-manager, if you can guarantee me that the package will not be dropped again I will come back...

Anyway I solved it with:

$config['backends']['default'] = array(
    'name'         => 'awss3',
    'adapter'      => 's3',
    'bucket'       => '***',
    'region'       => 'fra1',
    'endpoint'     => 'https://fra1.digitaloceanspaces.com',
    'key'          => '***',
    'secret'       => '****',
    'visibility'   => 'public',
    'root'         => '***'
);
        's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'endpoint' => env('AWS_ENDPOINT'),
            'visibility' => 'public-read',
        ]

I hope this will help someone.

from ckfinder-laravel-package.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.