Fix an error from bug 998796

The patch from bug 998796 wound up passing filetype_whitelist to upload_dir as a positional argument, not a keyword argument, which meant it actually got passed in as the 'compress' argument, which broke things a bit.