Problem in File Manager - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Problem in File Manager (/showthread.php?tid=516) |
Problem in File Manager - juliancc - 2010-03-14 I just encounter a problem in the file manager. Uploading images or files that have special chars (&) in their name, breaks the delete functionality of the file manager. Also if the file in question is an image, the Thumb generator also has trouble generating a thumb for the photo. Update: Apparently is just the ampersand. I fixed this by changing line 22 in upload-ajax.php: Code: $name = preg_replace('/[!@#$%^&*() ]/', '_', $_FILES['Filedata']['name']); I'm replacing all the special chars just to be sure.. But from my research only the ampersand gave me problems. If that is the case we can use just a str_replace: Code: str_replace('&','_',$_FILES['Filedata']['name']) Problem in File Manager - sal - 2010-03-15 I have also experienced this with both 2.0 and 2.0.1 but will apply the fix detailed above. |