The core function file_validate_extensions() parses file names in the assumption that the extension is the LTR suffix <a href="http://api.drupal.org/api/drupal/includes--file.inc/function/file_validate_extensions/6">http://api.drupal.org/api/drupal/includes--file.inc/function/file_validate_extensions/6</a><br>
<br>The LTR suffix convention is widely used and important for security reasons. There doesn&#39;t appear to be a clear solution aside from removing filename extension limitations (a possible security vulnerability) or renaming your files.<br>
<br><div class="gmail_quote">On Wed, Nov 3, 2010 at 8:24 AM, Ivan Rocha <span dir="ltr">&lt;<a href="mailto:ivan.cr.neto@gmail.com">ivan.cr.neto@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br><br>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&#39;s name. As an arabic name has the RTL write form, the &#39;jpg&#39; is in the left side. Drupal says that &quot;The select file jpg, could not be uploaded. Only files with the following extensions are allowed: png, gif, jpg, jpeg&quot;. I have searched the web, but didn&#39;t find issues about this question.<br>




<br>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&#39;s name.<br><br>Regards,<br>Ivan.<br clear="all"><br>-- <br><font color="#888888">Ivan Rocha<br>
<br>
</font></blockquote></div><br>