When a user attaches a file with % character in the file name, the file uploads correctly, but cannot be viewed and results in a 404. This is because file_create_url() in file.inc does not urlencode the file path and the file url is incorrect.

You can reproduce this problem with the dummy files I have attached to this issue report. The file letter.txt can be downloaded successfully, but letter %22my%22.txt results in a 404.

CommentFileSizeAuthor
letter %22my%22.txt7 bytesabrao
letter.txt7 bytesabrao
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

abrao’s picture

Issue summary: View changes

Added note about public downloads

abrao’s picture

This problem exists in all 6.x versions. Any chances of fixing this, so that we don't have to touch core?

abrao’s picture

Issue summary: View changes

removed public download message

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.