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.

Comments

capellic’s picture

I am having this problem, too. Thanks for identifying that it would work with user1 --- I was able to complete my task.

dman’s picture

Status: Active » Needs work

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

dman’s picture

Status: Needs work » Closed (fixed)

issue queue cleanup
there is still an issue with non-uid-1 users, but I don't know the fix. Error is gone however (?)

carinadigital’s picture

For anyone monitoring this issue, I have the same problem in 1.3 and a possible patch. See #791378: improper use of file_validate_extensions on upload