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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | file-upload-proper-validation-error-message-1347918-1.patch | 1.31 KB | sheldon rampton |
Comments
Comment #1
sheldon rampton commentedI'm attaching a patch which backports my proposed D8 solution for this bug to Drupal 7.
Comment #2
sheldon rampton commentedChanging status to needs review
Comment #3
marcingy commentedWe 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