aboutsummaryrefslogtreecommitdiffstats
path: root/include/config_default.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-07-30 13:48:35 +0000
committerplegall <plg@piwigo.org>2014-07-30 13:48:35 +0000
commit379398d91751ca7394cd7c24ace3f7767fa1e5dd (patch)
tree6c5be81f008da844aa514a06143d9f58b9aaa73b /include/config_default.inc.php
parentcd110d959b6f6381a250e876f2b6f5c36705274c (diff)
feature 3067: upload any file type with the new HTML5 upload form.
$file_types = conf['upload_form_all_types'] ? $conf['file_ext'] : $conf['picture_ext']; By default, conf['upload_form_all_types'] = false; git-svn-id: http://piwigo.org/svn/trunk@29124 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/config_default.inc.php')
-rw-r--r--include/config_default.inc.php24
1 files changed, 17 insertions, 7 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 7b608ccd5..2b081f830 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -53,15 +53,15 @@
//
// $conf['order_by_inside_category_custom'] = $conf['order_by_custom'];
-// file_ext : file extensions (case sensitive) authorized
-$conf['file_ext'] = array('jpg','JPG','jpeg','JPEG',
- 'png','PNG','gif','GIF','mpg','zip',
- 'avi','mp3','ogg');
-
// picture_ext : file extensions for picture file, must be a subset of
// file_ext
-$conf['picture_ext'] = array('jpg','JPG','jpeg','JPEG',
- 'png','PNG','gif','GIF');
+$conf['picture_ext'] = array('jpg','JPG','jpeg','JPEG','png','PNG','gif','GIF');
+
+// file_ext : file extensions (case sensitive) authorized
+$conf['file_ext'] = array_merge(
+ $conf['picture_ext'],
+ array('tiff', 'tif', 'mpg','zip','avi','mp3','ogg')
+ );
// top_number : number of element to display for "best rated" and "most
// visited" categories
@@ -798,4 +798,14 @@ $conf['inheritance_by_default'] = false;
// 'png' or 'jpg': your uploaded TIF photos will have a representative in
// JPEG or PNG file format
$conf['tiff_representative_ext'] = 'png';
+
+// in the upload form, let users upload only picture_exts or all file_exts?
+// for some file types, Piwigo will try to generate a pwg_representative
+// (TIFF, videos, PDF)
+$conf['upload_form_all_types'] = false;
+
+// If we try to generate a pwg_representative for a video we use ffmpeg. If
+// "ffmpeg" is not visible by the web user, you can define the full path of
+// the directory where "ffmpeg" executable is.
+$conf['ffmpeg_dir'] = '';
?>