Hi FileField dev team.

i found a problem is :

i use filefield for a new content type
and upload is fine with file name is "SS#27086.pdf"

and file will be save mydomain.com/files/SS#27086.pdf
but when i download this file with http or open it on browser it shown me is not found

seem problem with "#" character,

so i think we do need replace "#" to "_" or "-"

how about that,


#3 filefield_encode_url.patch788 bytesquicksketch


Priority:Critical» Normal

Install http://drupal.org/project/transliteration.

This is still a bug that the # sign isn't converted into URL entity though. So we'll leave this open as a bug until I have time to confirm the problem.

Yes, you are right, i have convert use url encode (urlencode) , but i think this is mistake in filefield theme funciton

i hope FileField Dev Team, fixs this in next version.


Status:Active» Fixed
new788 bytes

This patch fixes up this problem. Apparently when using public files you have to manually encode the URL, as Drupal just assumes that the URL is okay otherwise. Private files are already encoded just fine.

Title:Error with upload with file name has special character "#"Encode public URLs to help with display of characters, such as "#"

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status:Closed (fixed)» Needs work

This change appears to have broken URLs containing spaces. I have a few sites where the URLs are now getting double encoded. For example:
and http://bec.orvsd.org/sites/bec.orvsd.org/files/A.1%25201.doc results in the file not being accessible.

Commenting out / reverting this change fixes the problem for me. I am unsure how to fix this, using rawurlencode seems to break it more.