1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #941 (new defect)

Opened 2 years ago

Last modified 2 years ago

Inconsistency behavior in the uploader with Arabic file names

Reported by: mamouneyya Owned by:
Priority: major Milestone: 3.2
Version: GIT HEAD Keywords: i18n l10n arabic uploadify
Cc: floridave

Description

The uploader of the latest development release wasn't allowing to upload some of my Gallery-supported photos/movies with Arabic names. They were appearing in gray/un-clickable way in the browsing window. However, I noticed that that was not *always* true with Arabic named files, as I indeed could upload some of them. So, I've made some trials trying to get a rule for this.


These are the strange results I got: (I can confirm these for Arabic)

- If you insert any English letter in the file's name, the uploader will allow to upload it. (i.e 'سي.jpg' is not allowed, while 'سي e.jpg' is.)

- If you increased the file name's length by more of the non-English language characters (yes, even characters such the Unicode Arabic comma '،' will do this), the uploader will allow to upload the file. I didn't get a fixed number for the characters, but it's almost more than '27' characters.. sometimes '28', sometimes more. (i.e 'إنشــــــــــــــــــــــاء.jpg' and '،،،،،،،،،،،،،،،،،،،،،،،،،،،،.png' are allowed, while if you delete one or more characters from any of them, they will be not.)


If that was the case for all non-English names too, then I propose a simple workaround for this by adding an 'English letter' before any non-English file's name. Or you can simply replace that flash-based uploader by something else, so I can use Gallery 3 on my password-protected site (I'm talking about #703) (smile).

Change History

Changed 2 years ago by floridave

  • cc floridave added

Changed 2 years ago by mamouneyya

Hmm, first of all I've realized that my workaround was stupid and impossible as we are talking about pre-processing step, that is, before Gallery stores any files of those. The issue happens in files choosing it-self, so those files are being located on the local user's machine, and Gallery cannot edit them unless it imports them.

Anyway, I found that I can choose any file of those that I cannot choose them in Gallery uploader, with the Uploadify uploader it-self, that located in the demo page: http://www.uploadify.com/demo/.. so it doesn't seem an Uploadify issue (?).

Changed 2 years ago by mamouneyya

I've tried now to remove the file format limitation from the uploader, and it works. I could choose any file of those. So, it seems to be an issue recognizing these files' format (?).

I've removed:

      fileExt: "*.gif;*.jpg;*.jpeg;*.png;*.flv;*.mp4;*.GIF;*.JPG;*.JPEG;*.PNG;*.FLV;*.MP4",
      fileDesc: <?= t("Photos and movies")->for_js() ?>,

from: "./modules/gallery/views/form_uploadify.html.php".

Changed 2 years ago by mamouneyya

  • keywords i18n l10n arabic uploadify added

Changed 2 years ago by andy_st

  • milestone changed from 3.0 RC 1 to 3.0 RC 2

Changed 2 years ago by mamouneyya

Related issue: #1045

Changed 2 years ago by tnalmdal

  • milestone changed from 3.0 RC 2 to 3.1
Note: See TracTickets for help on using tickets.