samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Umlaut in image file name #512

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to "Gallery" in main menu
2. Select "Add Gallery / Images"
3. Select an existing gallery
4. Upload a new file with umlaut in file name (e.g. töst.png) 

What is the expected output? What do you see instead?
Expected: The file is listed in the galery with it's name "töst" (or - 
proposal for improvement - the name with an removed umlaut e.g. tost.png - even 
better toest.png)
I can click on the entry and the image is displayed. At the blog the thumbnail 
is displayed in the galery and the image is displayed when I click on the 
thumbnail.

What i see:
The file is listed as "t%c3%b6st" (which still would be fine) but when I click 
on it the image is not displayed. Also neither the thumbnail nor the image is 
displayed at the blog.

What WordPress / NextGEN Gallery version are you using? What browser are
you using?
WordPress 3.6.1
NextGEN Gallery 2.0.21 
Browser: Firefox 23.0.1 under Linux (also happened under Windows)

Please provide any additional information below.

The reason for that seems to be that not only the name of the image get's URL 
encoded within the web-interface but also the image file gets stored as 
"t%c3%b6st.png" (instead of töst.png). When the link is sent to the webserver 
the URL get's decoded and the web server searches for the not-encoded URL in 
the filesystem.

I want to propose two different solutions
a) store the image by it's original (not URL encoded name) - the web server 
will do the rest (for me it helped to rename the images within the filesystem 
and to scan the gallery folder
b) replayce the umlauts with non umlauts (e.g. ö->oe, ä->ae, ü->ue, ß->ss - 
and the same for upper case)

Thank you very much!

Original issue reported on code.google.com by harald.s...@gmail.com on 13 Sep 2013 at 3:48

GoogleCodeExporter commented 8 years ago
Any fixes for this?

Original comment by raresh...@gmail.com on 7 Feb 2014 at 10:29