mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes 1720 max upload form max_file_size configurable
This commit is contained in:
@@ -14,6 +14,7 @@ $template->assign(
|
||||
array(
|
||||
'F_ADD_ACTION'=> PHOTOS_ADD_BASE_URL,
|
||||
'chunk_size' => $conf['upload_form_chunk_size'],
|
||||
'max_file_size' => $conf['upload_form_max_file_size'],
|
||||
'ADMIN_PAGE_TITLE' => l10n('Upload Photos'),
|
||||
)
|
||||
);
|
||||
|
||||
@@ -133,7 +133,7 @@ jQuery(document).ready(function(){
|
||||
|
||||
filters : {
|
||||
// Maximum file size
|
||||
max_file_size : '1000mb',
|
||||
max_file_size : '{/literal}{$max_file_size}{literal}mb',
|
||||
// Specify what files to browse for
|
||||
mime_types: [
|
||||
{title : "Image files", extensions : formatMode ? format_ext : file_ext}
|
||||
|
||||
@@ -920,6 +920,9 @@ $conf['upload_form_all_types'] = false;
|
||||
// performances with high values, such as 5000.
|
||||
$conf['upload_form_chunk_size'] = 500;
|
||||
|
||||
// Maximum size for a file in the upload form, in megabytes.
|
||||
$conf['upload_form_max_file_size'] = 1000;
|
||||
|
||||
// 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.
|
||||
|
||||
Reference in New Issue
Block a user