mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 03:39:57 +03:00
fixes 1720 max upload form max_file_size configurable
This commit is contained in:
parent
cce43df25e
commit
f95bab9e90
3 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue