diff options
author | Brion Vibber <brion@pobox.com> | 2010-05-10 16:18:29 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-28 08:59:47 -0700 |
commit | 9c7b66984c46668f314f93337d28c62854b6d134 (patch) | |
tree | 75c9c75503803f8d863a7bd04f33c2f139a37849 /tests/sample-uploads/image.gif | |
parent | 41d81b996fdd8276cc04e750297a12f852a97bf4 (diff) |
Enhanced upload file type detection. If given an original filename, we'll attempt to detect type from the extension if we were unable to make a definitive match from content. Generic octet-stream, zip, and MS Office type are explicitly singled out for re-checks, which fixes OpenOffice and MS Office documents to come up with the proper types when misdetected.
File extensions can also be added to the upload type whitelist; they'll be normalized to types for the actual comparison, so only known extensions will work.
Diffstat (limited to 'tests/sample-uploads/image.gif')
-rw-r--r-- | tests/sample-uploads/image.gif | bin | 0 -> 35 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/sample-uploads/image.gif b/tests/sample-uploads/image.gif Binary files differnew file mode 100644 index 000000000..b636f4b8d --- /dev/null +++ b/tests/sample-uploads/image.gif |