mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-23 14:57:46 +01:00
Aumento limite upload
This commit is contained in:
parent
7cc0620226
commit
13300e88eb
@ -71,11 +71,11 @@ $settings = [
|
||||
//],
|
||||
'upload_max_filesize' => [
|
||||
'type' => 'value',
|
||||
'description' => '>16M',
|
||||
'description' => '>32M',
|
||||
],
|
||||
'post_max_size' => [
|
||||
'type' => 'value',
|
||||
'description' => '>16M',
|
||||
'description' => '>32M',
|
||||
],
|
||||
];
|
||||
|
||||
|
@ -69,14 +69,14 @@ if (setting('Attiva aggiornamenti')) {
|
||||
$upload_max_filesize = str_replace(['k', 'M'], ['000', '000000'], $upload_max_filesize);
|
||||
// Dimensione minima: 16MB
|
||||
if ($upload_max_filesize < 16000000) {
|
||||
$alerts['upload_max_filesize'] = '16MB';
|
||||
$alerts['upload_max_filesize'] = '32MB';
|
||||
}
|
||||
|
||||
$post_max_size = ini_get('post_max_size');
|
||||
$post_max_size = str_replace(['k', 'M'], ['000', '000000'], $post_max_size);
|
||||
// Dimensione minima: 16MB
|
||||
if ($post_max_size < 16000000) {
|
||||
$alerts['post_max_size'] = '16MB';
|
||||
$alerts['post_max_size'] = '32MB';
|
||||
}
|
||||
|
||||
if (!empty($alerts)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user