Coder Social home page Coder Social logo

File browser internal error about jodit HOT 31 CLOSED

xdan avatar xdan commented on August 25, 2024
File browser internal error

from jodit.

Comments (31)

xdan avatar xdan commented on August 25, 2024 1

I will close this issue, because this about jodit-application product. Please create issue in right repository.

from jodit.

xdan avatar xdan commented on August 25, 2024

Hi, it was old version of php connector. Please download new version and try again.

from jodit.

xdan avatar xdan commented on August 25, 2024

Can i close this issue?

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

Hi, first of all download latest connector https://xdsoft.net/jodit/store/connector.zip
next, please don't remove file config.php
if you need customize config, do it in config.php, not in default.config.php
read more:
https://github.com/xdan/jodit-connectors#configuration

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

Do it again please, last connector release was yesterday

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

All right, how do you plan to verify the authenticity of the user?
For example in Yii2 it might be so:

function checkPermissions () {
    if (Yii::$app->user->isGuest) {
        throw new \ErrorException('You do not have permission to view this
directory', 403);
    }
}

it is only example. In you site you can comment this lines

function checkPermissions () {
    //if (empty($_SESSION['filebrowser'])) {
    //    throw new \ErrorException('You do not have permission to view this directory', 403);
    //}
}

But then anyone can change your photos

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

Hi, download latest version. And you can use this code https://github.com/xdan/jodit-connectors#configuration

function checkPermissions () {
    /********************************************************************************/
    if (empty($_SESSION['filebrowser'])) {
        switch ($this->action) {
        case "resize":
        case "move":
        case "create":
        case "remove":
        case "uploadremote":
        case "upload":
            throw new \ErrorException('You do not have permission to view this directory', 403);
        }
    }
    /********************************************************************************/
}

from jodit.

xdan avatar xdan commented on August 25, 2024

Please, install composer https://getcomposer.org/
Then you can update Jodit-connector with just a command

composer update

from jodit.

xdan avatar xdan commented on August 25, 2024

If JavaScript also hide FileBrowser buttons

var editor = new Jodit({
   filebrowser: {
       buttons: [
          // 'upload', 
         //  'remove',
           'update',
           'select',
        //   'edit', 
           'tiles',
           'list', 
           'filter',
           'sort' 
      ],
      url: ...
   }
})

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

I would like to clarify one thing, we are now talking about Jodit that you bought https://xdsoft.net/jodit/ but about a separate php project https://github.com/xdan/jodit-connectors it is free.
If we talk about CKEditor then you probably used CKfinder(Not CKEditor)

You can implement the functions that you need in it yourself by sending me a pull of request.

https://github.com/xdan/jodit-connectors is an open product, and I welcome any of its improvements. Send me the code that you set up your CKFinder, and I'll see how to do the same in Jodit-connector

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

ok, i wrote new version
Update jodit and connector
And you can use https://github.com/xdan/jodit-connectors#access-control

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

https://github.com/xdan/jodit/releases/tag/3.1.3 latest version Jodit
https://xdsoft.net/jodit/store/connector.zip latest connector

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

Give rights to the directory so that you can write to it
chmod 0777 ./files

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

xdan avatar xdan commented on August 25, 2024

Wait please, today will be new version connector

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

from jodit.

inteliclass avatar inteliclass commented on August 25, 2024

Happy New year to all the participant on this forum.

We have not got any reply in this matter for last 15 days. we will appreciate all of your help in solving ongoing problem. we expecting solution from this group.

thanks

from jodit.

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.