Comments (8)
with both PHP and JSP connector?
from filemanager.
I think PHP connector works fine.
I haven't time now to test the PHP connector, so I'll try it later.
from filemanager.
I'll do it, don't worry. Thanks for the bug report
from filemanager.
I found a workaround by converting from ISO-8859-1 to UTF-8 the currentpath parameter.
In function add, line 334 in FileManager.java, I'm using this code:
else if (item.getFieldName().equals("currentpath")){
currentPath = item.getString();
currentPath = new String (currentPath.getBytes("ISO-8859-1"),"UTF-8");
}
from filemanager.
This has been solved by using the function cleanString also for the creation of directories. That means that exotic characters are not allowed in a directory name. This may seem ugly, but the file manager in for instance Joomla does the same thing.
By the way, the error does occur also in the php connector
from filemanager.
trickydicky > works fine for php.
But I think we should have a unique policy regarding folder names. I will probably apply the cleanString methode as well
from filemanager.
Hi.
cleanString solves the problem in the upload proccess, but if the server contains folders or files with exotic chars, the problen is already there.
If I want to use this file manager in a existing webpage, and I have somo exotic characters in folders or files (this could be usual in languages like Spanish or French), I'll have a lot of problem with it.
I think that the clearString function in the right way, but I algo think that the filemanager should can deal with those cases. The 'new String (currentPath.getBytes("ISO-8859-1"),"UTF-8")' can solve it easily.
Also, I would like to propose that the cleanString will be more "exotic character friendly", I mean:
- Replace "ñ" with "n"
- Replace accented vowels with standard vowels: "áà" => "a"; "éè" => "e", etc.
- Replace "ç" with "c"
And maybe, space with underscore? For readability...
Regards.
from filemanager.
This is done now for PHP connector. Should be applied to other connectors.
PHP conn : cleanString() is now called on addfolder() method
from filemanager.
Related Issues (20)
- Include FM in other PHP file HOT 1
- Help me! plase HOT 2
- How to define upload size HOT 2
- Can i change fileRoot with js? HOT 1
- ..
- Issue with expandedFolder HOT 4
- C:\xampp\htdocs\arquilocura\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php HOT 1
- Getting "No way." when loading session-based folder. HOT 3
- Laravel routes HOT 1
- Does "expandedFolder" option works? HOT 1
- Why no double underscores in file names? HOT 3
- unable to play Audio and video files, view pdf's HOT 1
- just want to run this HOT 1
- problem with fancybox HOT 2
- Adding Storage Details/Information to File Manager
- security issue HOT 2
- Directory doesn't exist HOT 1
- Security Issue - Vulnerability in CFM module HOT 3
- How to add in Django
- Failed to generate thumbnail
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 filemanager.