derobert's blog

Developers can now upload firmware *or* how does your Drupal suck today?

Drupal apparently has a list of file extensions that it allows to be uploaded. Today's mission, should you accept it, is simple:

Add .ver and .upk to the allowed extensions list in Drupal.

This message will self destruct in 10µs, etc.

Ok. Not too hard, right? So I go looking around the entire admin section. Can't find it. Google around for help on it. There are instructions which are, well, wrong. The say to click on things which do not exist.

Clearly, time to UTSL. A little grepping shows that it can be set per-role (cool!) by a variable called upload_extensions_$rid where $rid is the id number of the role. A little grepping in the source for where that can be set leads to an admin page which, for unknown reasons, does not work. Ok. Whatever. To the DB!

Syndicate content