I'm using the remote transfer feature of FileField Sources in combination with ImageField, ImageCache and Transliteration.

My problem is that files uploaded with remote transfer apparently don't get passed to Transliteration. This causes problems with ImageCache, which can't handle characters like plus signs in file names.

Steps to reproduce:

  • Remote transfer a file named a+b.jpg into an ImageField.
  • Create a thumbnail of the image with ImageCache.
  • Attempt to view thumbnail.

Expected results:
Image filename is transliterated with Transliteration module into ab.jpg. Thumbnail is visible.

Actual results:
Imagecache is unable to display thumbnail because of plus sign in filename.

Comments

quicksketch’s picture

Title: No transliteration for remote URLs » Add support for transliteration to remote URLs
Category: bug » feature

Thanks for the report. Transliteration works by checking the $_FILES array for newly uploaded files and then cleans them up before they are ever saved by Drupal. In the case of remote files however, the $_FILES array is never used, so transliteration doesn't know a new file has been created. So in this case, we'll need to manually check if transliteration module is installed, then request it clean up the name for us. It *is* an oversight on the remote file handling, but one more of omission rather than error.

quicksketch’s picture

Version: 6.x-1.0 » 6.x-1.1
Status: Active » Fixed

Since Transliteration was included for local files in #438940: Add ability to use file uploaded via FTP, I included the addition of transliteration for remote files in that issue also.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.