diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2011-07-24 08:25:57 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2011-07-24 08:25:57 -0700 |
| commit | ad47d826cf3b1a083449287975958cb2e2f2a3c2 (patch) | |
| tree | 8dd247d971c84eea2dad64c54b462f8774e8814d /modules/gallery/controllers/uploader.php | |
| parent | 403f64bf2a91fe3ac2496a0a6a6180ece26afd82 (diff) | |
| parent | 0672c8f83f068c546454bacefac123b5acb508cc (diff) | |
Merge pull request #51 from chadparry/rawphoto-squash
Chad Parry's framework enhancement to support replacing an image with a new version of a different mime type. This includes code that centralizes file type management and fixes some latent issues around the relative url and path caching getting out of date.
Diffstat (limited to 'modules/gallery/controllers/uploader.php')
| -rw-r--r-- | modules/gallery/controllers/uploader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/uploader.php b/modules/gallery/controllers/uploader.php index 6b1455e4..9c2bf7d7 100644 --- a/modules/gallery/controllers/uploader.php +++ b/modules/gallery/controllers/uploader.php @@ -51,7 +51,7 @@ class Uploader_Controller extends Controller { $file_validation = new Validation($_FILES); $file_validation->add_rules( "Filedata", "upload::valid", "upload::required", - "upload::type[gif,jpg,jpeg,png,flv,mp4,m4v]"); + "upload::type[" . implode(",", legal_file::get_extensions()) . "]"); if ($form->validate() && $file_validation->validate()) { $temp_filename = upload::save("Filedata"); |
