VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandomatyas on December 02, 2016, 12:16:13 PM

Title: Remove UTF8 characters from file names
Post by: sandomatyas on December 02, 2016, 12:16:13 PM
My customer uploaded some products images with space and accented characters in the file name. It was stored with this name to the image directory and the #__virtuemart_medias table but there some browsers which can't handle this properly and even PHP has some difficulties with that.
Is there a way to disable using special characters in file names?
Title: Re: Remove UTF8 characters from file names
Post by: Milbo on December 02, 2016, 22:50:21 PM
It is more or less just some lines and an option, an hidden one would be enough
Title: Re: Remove UTF8 characters from file names
Post by: sandomatyas on September 20, 2017, 09:17:21 AM
is there any progress with this?
Title: Re: Remove UTF8 characters from file names
Post by: sandomatyas on January 18, 2018, 13:41:21 PM
? :)
Title: Re: Remove UTF8 characters from file names
Post by: Studio 42 on January 18, 2018, 15:21:48 PM
If you upload files with Joomla, Virtuemart or my tool VM Be Pro, the files are renamed correctly to prevent such problems.
If you upload files directly, rename your files before upload is the only safe solution.
Title: Re: Remove UTF8 characters from file names
Post by: sandomatyas on January 19, 2018, 09:34:12 AM
I uploaded an image to a product (Joomla 3.8.3, VM 3.2.12) via VirtueMart and the special characters are still there
https://snag.gy/FkuXTo.jpg
Title: Re: Remove UTF8 characters from file names
Post by: Studio 42 on January 19, 2018, 13:03:15 PM
Hum, i was thinking, this are always safe.
So best, is to rename it before upload.
Title: Re: Remove UTF8 characters from file names
Post by: sandomatyas on January 19, 2018, 13:32:50 PM
I can rename sure but it would be better if VM could handle it. I could use a new settings option for that: would you like to use web-safe file names yes/no :)
Title: Re: Remove UTF8 characters from file names
Post by: sandomatyas on July 03, 2018, 07:25:52 AM
Quote from: sandomatyas on January 19, 2018, 13:32:50 PM
I can rename sure but it would be better if VM could handle it. I could use a new settings option for that: would you like to use web-safe file names yes/no :)

@Milbo maybe? :/

I had to restore a backup where VM had utf8 filenames and this is what I got:
https://snag.gy/FhmAs6.jpg

I know, it's the server but there would be an option to use web-safe file names, it wouldn't be a problem.