Quote from: pepebe at Mar 25, 2009, 04:53 PM
Just to make this clear: As far as I know, each file only exists once. It just appears twice inside the resource browser.
I also agree, that it is annoying, but I tell all my clients that they can ignore this when it happens. As each one of these "twin files" will work, it’s ok (for now).
Talking about problems with resource manager (RM). Enter the special characters issue. I get A LOT OF NEGATIVE FEEDBACK about how they are handeld by RM. If I upload file names containing special characters as for example ä, ü, ö, ß, etc, they are uploaded normally, but they don’t get a thumbnail and therefore never appear inside the RM window. I have tried a few suggestions, but nothing helped. If RM would at least display a proper error message telling a user to rename the respective file, I would be glad. But it just fails to create the thumbnail and thats it. I’m a sucker for error messages. Please give me one, if something unexpected happens.
The future: I’m sure you will agree that most people tend to be more influenced in their opinions by things that don’t work as they are influenced by things that work. Don’t get me wrong. I like the look and feel of this module. Very intuitive. Yet sad but true, right now, RM gives MODx a bad name for above reasons.
i know of course, that it’s just twin thumbnail but 1 file, but this is very annoying to explain each time that it’s all right, and i’m not so very bright programmer to fix this
about your problem, i’m a russian, and of course have a HUGE and the same problem with special Cyrillic characters like you
here is a solution
on line 62 and 63 of /manager/media/browser/mcpuk/connectors/php/Commands/FileUpload.php
Code:
// if (isset($_FILES[’NewFile’])&&isset($_FILES[’NewFile’][’name’])&&($_FILES[’NewFile’][’name’]!=""))
// $_FILES[’NewFile’][’name’]=$_FILES[’NewFile’][’name’]; //$this->cleanFilename($_FILES[’NewFile’][’name’]);
change to
Code:
if (isset($_FILES[’NewFile’])&&isset($_FILES[’NewFile’][’name’])&&($_FILES[’NewFile’][’name’]!=""))
$_FILES[’NewFile’][’name’] = $this->cleanFilename($_FILES[’NewFile’][’name’]);
it’s in modx 0.9.6.3., previous versions have different path
it cleans special characters from file name, leaving only numbers and english characters