False error message on upload

scrypter - October 19, 2009 - 21:17
Project:Web File Manager
Version:6.x-2.11
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I get "xyz.pdf can not be uploaded because it does not have one of the following extensions" and the list of extensions displayed is blank. In webfm.module line 2536 it refers to $extensions which is not a local variable or a parameter. This is quite confusing because the "error" in this case seems to be related to file upload size limit. I have got it to work by altering the role max individual file upload size. Maybe function webfm_upload_validate($file, &$err_arr) needs a little attention? There is a call to webfm_get_extensions_regex($rid) but the variable set up is $regex.

Sorry I haven't dug any deeper, I figure the developer will sort this much quicker than me. BTW, fantastic module.

 
 

Drupal is a registered trademark of Dries Buytaert.