Lars' Tech Tips

Small things that make your life easier

Skip to: Content | Sidebar | Footer



Configuring FileField allowed extensions in Drupal

8 April, 2010 (13:52) | Drupal, PHP | By: Lars

Problem: you try to upload a file in Drupal and you get something like this:

The selected file <file> cannot not be uploaded. Only files with the following extensions are allowed:…

for an extension that is included in Administer->File Uploads.

I found that I had the module CCK FileField installed and its allowed extensions are configured in a different place (that is very hard to find too):

Administer->Content Management->Content types.

For the File / Upload files entry click on “manage fields” under Operations the for the filed_file entry click Configure under Operations. You’ll find “Permitted upload file extensions:” there.

Hope it helps, it took me much too long to find it.

Comments

Comment from Amy Young
Time June 11, 2010 at 10:38 pm

Thanks for posting this. It’s nearly impossible to find elsewhere. Drupal is like the X-files. People really love it, but I can’t figure out sometimes.

Write a comment