diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-01 12:13:20 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-01 12:13:20 +0000 |
commit | f4adea3198f441663835ea4e45f622483adb444e (patch) | |
tree | ef61bc9b6cde3e60083fea9c6dd6a17ceb2aebe9 /mod/file/actions | |
parent | 01693c67dbb7ed686b6fa03faba875eb11fea160 (diff) | |
download | elgg-f4adea3198f441663835ea4e45f622483adb444e.tar.gz elgg-f4adea3198f441663835ea4e45f622483adb444e.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Using mime types
git-svn-id: https://code.elgg.org/elgg/trunk@591 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/actions')
-rw-r--r-- | mod/file/actions/upload.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mod/file/actions/upload.php b/mod/file/actions/upload.php index 881470bc7..05b0150f6 100644 --- a/mod/file/actions/upload.php +++ b/mod/file/actions/upload.php @@ -19,6 +19,7 @@ $prefix = "/file/"; $file = new ElggFile(); $file->setFilename($_FILES['upload']['name']); + $file->setMimeType($_FILES['upload']['type']); $file->open("write"); $file->write(get_uploaded_file('upload')); |