You might look at the http://drupal.org/project/mimedetect to see if it
can help -- it examines the file directly, afaik, rather than simply
the filename.
On 11/03/2010 12:09 PM, Carl Wiedemann wrote:
The core function file_validate_extensions() parses file
names in the assumption that the extension is the LTR suffix http://api.drupal.org/api/drupal/includes--file.inc/function/file_validate_extensions/6
The LTR suffix convention is widely used and important for security
reasons. There doesn't appear to be a clear solution aside from
removing filename extension limitations (a possible security
vulnerability) or renaming your files.
On Wed, Nov 3, 2010 at 8:24 AM, Ivan Rocha <[email protected]>
wrote:
Hi,
I am in trouble with uploading images that have arabic names. I think
Drupal try to match the wrongly the three last characters os the
image's name. As an arabic name has the RTL write form, the 'jpg' is in
the left side. Drupal says that "The select file jpg, could not be
uploaded. Only files with the following extensions are allowed: png,
gif, jpg, jpeg". I have searched the web, but didn't find issues about
this question.
I would like some help about how I can proceed to solve this problem.
Bellow is an attach image containing the error and the image's name.
Regards,
Ivan.
--
Ivan Rocha
--
Aaron Winborn
Advomatic, LLC
http://advomatic.com/
Drupal Multimedia available now!
http://www.packtpub.com/create-multimedia-website-with-drupal/book
My blog:
http://aaronwinborn.com/
|