mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-04 04:22:53 +02:00
closes #346 chunk_size is now a config setting
This commit is contained in:
@@ -44,6 +44,7 @@ $template->assign(
|
||||
'F_ADD_ACTION'=> PHOTOS_ADD_BASE_URL,
|
||||
'upload_max_filesize' => $upload_max_filesize,
|
||||
'upload_max_filesize_shorthand' => $upload_max_filesize_shorthand,
|
||||
'chunk_size' => $conf['upload_form_chunk_size'],
|
||||
)
|
||||
);
|
||||
|
||||
@@ -229,4 +230,4 @@ if (!isset($_SESSION['upload_hide_warnings']))
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -86,7 +86,7 @@ jQuery(document).ready(function(){
|
||||
// url : '../upload.php',
|
||||
url : 'ws.php?method=pwg.images.upload&format=json',
|
||||
|
||||
chunk_size: '500kb',
|
||||
chunk_size: '{/literal}{$chunk_size}{literal}kb',
|
||||
|
||||
filters : {
|
||||
// Maximum file size
|
||||
|
||||
@@ -800,6 +800,10 @@ $conf['tiff_representative_ext'] = 'png';
|
||||
// (TIFF, videos, PDF)
|
||||
$conf['upload_form_all_types'] = false;
|
||||
|
||||
// Size of chunks, in kilobytes. Fast connections will have better
|
||||
// performances with high values, such as 5000.
|
||||
$conf['upload_form_chunk_size'] = 500;
|
||||
|
||||
// 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.
|
||||
@@ -817,4 +821,4 @@ $conf['log_level'] = 'DEBUG';
|
||||
|
||||
// Keep logs file during X days
|
||||
$conf['log_archive_days'] = 30;
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user