TransWikia.com

“&” displaying as “&”

Drupal Answers Asked by MohK on February 28, 2021

I’m Using File (Field) Paths

“&” displaying as “&” in the file name

i tried to solve it by change the the display of the field to plain text and use the token view mode but nothing change

Any help?

One Answer

You should always prevent special characters in filenames, this can lead to strange behavior. Specifically because certain characters can be part of a query string (example.com/index.php?var1=value1&var2=value2).

I recommend the Transliteration module (assuming Drupal 7) to remove these charaters form the filename. If that does not help (or if you are using Drupal 8), you might want to take another look at you upload configuration. There might be a token provided by File (Field) Paths that does provide you with a good encoded name.

Answered by Neograph734 on February 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP