Download & Extend

improper use of file_validate_extensions on upload

Project:Taxonomy import/export via XML
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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

#2

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

#3

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 (?)

#4

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

nobody click here