Posted by BarisW on October 23, 2009 at 8:49am
4 followers
| Project: | FileField |
| Version: | 6.x-3.2 |
| Component: | User interface |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | Usability |
Issue Summary
Form a usability perspective I expect a CMS to do the work for me. Right now, on the "Permitted upload file extensions" settings, I get the description:
Separate extensions with a space and do not include the leading dot.
So I entered pdf, doc, xls, ppt, zip. No dots, so all accepted.
After uploading a file I get this error:
The selected file filename.pdf could not be uploaded. Only files with the following extensions are allowed: pdf, doc, xls, ppt, zip.
It took me a while to figure out the comma's in the allowed extentions where the cause of this error.
Suggestion:
- Filter out comma's automatically
- Or (quick win) change the message that dots AND comma's are not allowed
| Attachment | Size |
|---|---|
| allowed_extentions.png | 3.09 KB |
Comments
#1
This probably won't be changed since development on FileField is winding down. The core version of FileField in Drupal 7 does allow commas.
#2
Having some free time and a penchant to clean the FileField queue, I put together this patch which back-ports the commas-are-optional approach of Drupal 7. Essentially you can use commas if you want (they're actually inserted for you now) but either commas or spaces will have the same effect.
#3
#4
Automatically closed -- issue fixed for 2 weeks with no activity.
#5
Seems this was somewhat lost in the most recent dev version. I had to apply the patch again to fix.