photo upload and post_max_size / upload_max_filesize
I changed those setting them to:
php_value post_max_size 6M
php_value upload_max_filesize 2M
and then couldn't upload larger photos, but I got no error whatsoever, not even in the logs (DEBUG level) that only reported:
2022-04-29T10:39:27Z:LOG_INFO:cba07fb647:Photos.php:54:post: mod-photos: photos_post: begin
2022-04-29T10:39:27Z:LOG_INFO:cba07fb647:Photos.php:462:post: Content-Range: Array
(
[0] => bytes 0-4194303/4724669
[1] => 0
[2] => 4194303
[3] => 4724669
)
2022-04-29T10:39:28Z:LOG_INFO:cba07fb647:Photos.php:54:post: mod-photos: photos_post: begin
2022-04-29T10:39:28Z:LOG_INFO:cba07fb647:Photos.php:462:post: Content-Range: Array
(
[0] => bytes 4194304-4724668/4724669
[1] => 4194304
[2] => 4724668
[3] => 4724669
)
2022-04-29T10:39:28Z:LOG_INFO:cba07fb647:attach.php:1326:attach_mkdirp: basepath: store/aleabdo
2022-04-29T10:39:28Z:LOG_INFO:cba07fb647:attach.php:1161:attach_mkdir: basepath: store/aleabdo
2022-04-29T10:39:28Z:LOG_INFO:cba07fb647:attach.php:1711:find_folder_hash_by_attach_hash: attach_hash: 1eb2fc0968dfd74be7497002951a134dc9f7b11cf6ee806266c1425f3eb05901
2022-04-29T10:39:28Z:LOG_INFO:cba07fb647:Libsync.php:24:build_sync_packet: build_sync_packet
Every time I tried to upload a photo, a file lingered in the directory, each time it had the same size and (binary) contents:
-rw-r--r-- 1 www-data www-data 530365 Apr 29 07:39 3ca0f039-047c-4ba9-a4df-ef6433aa57ef
Is this expected? Am I missing some setting perhaps? I thought large post_max_size / upload_max_filesize was no longer needed.
Note: this is a quite old installation but it's up to date (7.2.2) yet running on php-7.4.28
.
Edited by Ale Abdo