Comments (11)
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.
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.
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.
Thanks
from kcfinder.
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.
@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.
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 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.
@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.
@derUli thanks a lot!
from kcfinder.
from kcfinder.
Related Issues (20)
- problem with requests via POST
- Kcfinder brower and uploader showing direct PHP code? Work in windows XAMPP but not mac XAMPP?
- to assign uploadfolder / usernamefolder / img
- Set Upload Limit and language
- "Incorrect server response" on upload HOT 3
- Blank Page HOT 1
- KCFinder upload from computer and browse server directly shows the php content
- Is it possible to link to an image in the image directory?
- clamav detects virus: false positive? HOT 2
- year/month folders HOT 1
- I made it possible to use Kcfinder in tinymce5 HOT 5
- Cross-site Scripting Vulnerability HOT 1
- Unknown image format/encoding HOT 1
- Change default browsing/upload directory into subfolder
- Is it dead? HOT 2
- Best alternative to replace this in an existing project?
- Upload cancelled in Chrome 83.0.4103.61 HOT 10
- How to upload JPEG 2000 and Webp images through KCFINDER
- How do I change the uploaded filename.. HELP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kcfinder.