Hi,
I've have two pdf files in a directory, uploaded via the file browser. When both are not in the database and I click the "Add files in this folder to database", both are added. Adding each by right-click and "Add file to database" also works without errors.
But if one is in the database and the other is not, then clicking on the "Add files in this folder to database" button returns
1 files inserted into db
1 files failed to insert into db
sites/default/files/webfm/uebl_06.pdf already in db
sites/default/files/webfm/test.pdf has invalid extension for authenticated user role.
pdf is a valid extension, of course, and despite this message, the file has been added the database.
cu,
Frank
Comments
Comment #1
robmilne commentedfixed in DRUPAL-5 branch only at this time
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
akeimou commentedencountering similar message when, e.g., moving a file from one folder to another via drag-and-drop:
files/webfm/Operations/handbook.pdf has invalid extension for caluser role.
that's because in this particular setup, the user has webfm and calendar roles (among others) but only the former has a corresponding entry webfm_extensions_ in the variable table.
found the source of the error message in webfm.module. needed a quick fix so i just added an if statement in function webfm_enum_validate to first check for the entry in the variable table as follows:
probably not the best fix. pls advise. thanks.