Posted by enboig on June 27, 2008 at 3:26pm
Jump to:
| Project: | Image Publishing |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
I have problems when updating files with "àáì..." in its name; if uploading the file using the standard image form the filenames are changed removing this (I have checked with my ftp), but if upload using windows registry patch they are upload with the name unchanged (containing "àáì..."). Filenames are truncated at the "non standard" character, so I suppose image_pub should change the filename or escape, but I have been unable to find where to do so. Any hint?
Comments
#1
As I can't use drupal_set_message I use watchdog to try to debug the problem. I addet
function _image_pub_image_add($album, $caption, $description, $srcfield) {watchdog('debug',"->".print_r($_FILES,true)); //debug
and the file I update is called "Còpia de imatge.jpg"; but the message appears:
Array ( [userfile] => Array ( [name] => CI don't know why but the message get trucated; it should at last close the ")" but it doesn't; I thougth the script was dying so I added another watchdog and I saw it wasn't dying.
Any hint? the file is upload correctly because it appears as "Còpia de imatge.jpg" in the FTP; I don't know why I cannot print $_FILES
#2
I've just taken over maintaining this module.
It would be really helpful to know exactly what piece of software you're using to do the uploading and what the "windows registry" patch is.
#3
I've not heard more about this for over a month, and it seems to be the same problem as #86440: Filenames do not get utf-8 encoded, so images fail to show, so I'm marking it as a duplicate. The short answer is to try using the transliteration module.