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
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

capellic - December 31, 2008 - 22:02

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

#2

dman - March 25, 2009 - 22:37
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

dman - August 30, 2009 - 11:23
Status:needs work» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.