#1 2025-05-01 07:16:57

ClaudioFlute
Member
2025-05-01
1

Fix Piwigo Upload Size Limit on Synology NAS (Not Just php.ini)

Hi Piwigo Community,

I hit a 1GB upload limit in Piwigo on my Synology NAS when uploading a 1.1GB file, despite setting upload_max_filesize and post_max_size to 2048M in php.ini. Many assume PHP settings are the issue, but Piwigo’s default configuration can still block larger files.

# The Issue:
Piwigo sets $conf['upload_form_max_file_size'] = 1000 (1GB) in "include/config_default.inc.php", overriding PHP limits. This caused my issue.

# Solution:
Override this in "local/config/config.inc.php" (don’t edit "config_default.inc.php", as updates overwrite it):

1. Open "/volume1/web/piwigo/local/config/config.inc.php" (e.g., via File Station or SMB from your PC).
2. Add at the end:
$conf['upload_form_max_file_size'] = 2048; // 2GB
3. Save the file.
4. Reload the Piwigo upload page and try uploading again.

# Also verify PHP:
1. Confirm Web Station or php.ini has:
- upload_max_filesize = 2048M
- post_max_size = 2048M
- max_execution_time = 3600
- max_input_time = 3600

2. Create a phpinfo.php file to check if in question.

# Environment
Piwigo 15.5.0
Operating system: Linux
PHP: 8.2.21 (Show info) [2025-05-01 13:15:45]
MySQL: 10.11.6-MariaDB [2025-05-01 13:15:45]
Graphics Library: ImageMagick ImageMagick 6.9.12-61
Activated plugin:
- Admin Tools
- Crop Image
- VideoJS

This worked for me without needing SSH or permission changes. Hope it helps!

Last edited by ClaudioFlute (2025-05-01 16:17:57)

Offline

 

#2 2025-05-01 16:05:44

alidemir
Member
istanbul
2025-05-01
10

Re: Fix Piwigo Upload Size Limit on Synology NAS (Not Just php.ini)

Thank you for the informative content. I haven't encountered such a problem yet, but if I do, I will take care of it.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact