Giter Site home page Giter Site logo

Comments (11)

derUli avatar derUli commented on May 24, 2024 1

Here is a reimplementation of the deprecated each() function

function myEach(&$arr) {
    $key = key($arr);
    $result = ($key === null) ? false : [$key, current($arr), 'key' => $key, 'value' => current($arr)];
    next($arr);
    return $result;
}

Just add this method to kcfinder and replace any calls of each() with myEach().
This will fix the deprecaton warnings.

from kcfinder.

derUli avatar derUli commented on May 24, 2024

I use kcfinder in one of my open source projects.
If you are still interested in this script I can provide you a version of kcfinder where I fixed your issue and additionally fixed an error where drag and drop a file creates duplicates.

from kcfinder.

kiwi3685 avatar kiwi3685 commented on May 24, 2024

Thanks. Your version sounds like it will be useful - although as a temporary fix I removed the lines causing the error, with no ill-effect! But a correct fix would be better :-)

from kcfinder.

kiwi3685 avatar kiwi3685 commented on May 24, 2024

Thanks

from kcfinder.

IVoyt avatar IVoyt commented on May 24, 2024

If you are still interested in ... additionally fixed an error where drag and drop a file creates duplicates.

Hi! I am sorry if offtopic. Could you please provide this part of script?

from kcfinder.

derUli avatar derUli commented on May 24, 2024

@IVoyt I noticed that my current fix works only if the user don't create a new folder. After the user created a new folder in kcfinder the duplicates error still happens.
Are you nevertheless interested in my fix?

from kcfinder.

derUli avatar derUli commented on May 24, 2024

If i got the time to look at this, i can fix the other part of the duplicates issue too and provide it as a fork at GitHub.

from kcfinder.

IVoyt avatar IVoyt commented on May 24, 2024

@IVoyt I noticed that my current fix works only if the user don't create a new folder. After the user created a new folder in kcfinder the duplicates error still happens.
Are you nevertheless interested in my fix?

If i got the time to look at this, i can fix the other part of the duplicates issue too and provide it as a fork at GitHub.

Yes, that would be great!

from kcfinder.

derUli avatar derUli commented on May 24, 2024

@IVoyt here is a link to my quick fixed script.
https://github.com/derUli/ulicms/blob/master/ulicms/admin/kcfinder/js/110.dropUpload.js

I currently try to figure out, why the error still happens after creating a new folder.

from kcfinder.

IVoyt avatar IVoyt commented on May 24, 2024

@derUli thanks a lot!

from kcfinder.

thasneem077 avatar thasneem077 commented on May 24, 2024

image

from kcfinder.

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.