improper use of file_validate_extensions on upload
jpappe - November 25, 2008 - 14:51
| Project: | Taxonomy import/export via XML |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Trying to import files as any user other than UID 1 (that does have permission to import taxonomies) results in a validation error:
"The selected file taxonomy_artist_type.xml could not be uploaded. Only files with the following extensions are allowed: upload_file."
This is because the form sets file_validate_extensions as the validation function, but does not correctly pass in extensions that are actually valid.

#1
I am having this problem, too. Thanks for identifying that it would work with user1 --- I was able to complete my task.
#2
I found that also :-)
arguments to validate_upload sure did change at some time, probably D5-6
This is repaired in dev a little while ago. Until then, yeah, gotta be User1
http://drupal.org/cvs?commit=185386
#3
issue queue cleanup
there is still an issue with non-uid-1 users, but I don't know the fix. Error is gone however (?)