The error message for file extension validation displays a bogus file path for browsers who do not return the real local file path for security reasons. This can cause confusion by leaving the user thinking that perhaps Drupal could not find the file because it messed up the file path.

This bug has been reported for Drupal 8, and a patch has been proposed in this thread: http://drupal.org/node/1037632#comment-5271196

Comments

sheldon rampton’s picture

I'm attaching a patch which backports my proposed D8 solution for this bug to Drupal 7.

sheldon rampton’s picture

Status: Active » Needs review

Changing status to needs review

marcingy’s picture

Status: Needs review » Closed (duplicate)

We only have one issue for d7 and d8 as the item needds to be fixed in d8 first and then fixed in d7 closing this as a duplicate of #1037632: Attaching a forbidden file to a node gives an error message with bogus file path