diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-17 11:10:25 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-17 13:51:28 +0800 |
commit | 236d5ff76dfae5d52a3b3d81b28332b3a33b122e (patch) | |
tree | ea5ae503021bfea2730ce30d9d98c5946819e977 | |
parent | 04853f19965a4b175fd29e823480eb64d7002654 (diff) |
Add support for uploading .jpeg files (in addition to .jpg)
Fix for ticket #428
Signed-off-by: <unostar@danalan.info>
-rw-r--r-- | modules/gallery/controllers/simple_uploader.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/controllers/simple_uploader.php b/modules/gallery/controllers/simple_uploader.php index dfbd4f17..e68df2b8 100644 --- a/modules/gallery/controllers/simple_uploader.php +++ b/modules/gallery/controllers/simple_uploader.php @@ -39,7 +39,8 @@ class Simple_Uploader_Controller extends Controller { access::verify_csrf(); $file_validation = new Validation($_FILES); - $file_validation->add_rules("Filedata", "upload::valid", "upload::type[gif,jpg,png,flv,mp4]"); + $file_validation->add_rules( + "Filedata", "upload::valid", "upload::type[gif,jpg,jpeg,png,flv,mp4]"); if ($file_validation->validate()) { // SimpleUploader.swf does not yet call /start directly, so simulate it here for now. if (!batch::in_progress()) { |