mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-20 05:45:11 -04:00
Add support for uploading .jpeg files (in addition to .jpg)
Fix for ticket #428 Signed-off-by: <unostar@danalan.info>
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user