Webtop: unable to add attachement > 1MB

NethServer Version: 7
Module: webtop
Hi all,

I run webtop on proxmox, fully up to date. Since this morning, I am not able to add an attachement to a mail larger then 1 MB…
When trying, there’s an error “unable to upload file” . I’ve searched the forum and found some simular topics, but these were different (in error). The proposed solution (admin interface, properties, attachment.maxfilesize), or via settings did not help.
This looks more like a ’ system’ error then a webtop error?
(files smaller then 1MB attach OK)
Can someone help (at first, help with what more is needed)

Thanks,
Rolf

What your php setup tells you?

The config item you mentioned, I already checked, and set it to 20 MB.
However, the error displayed in that screenshot is different from mine.
I found another thread that talked about php config, but there was a reply that webtop isn’t a php-application (?). Nevertheless:

root@neth:~> $ config show php
php=configuration
DateTimezone=UTC
ExposePhp=
MaxExecutionTime=0
MaxFileUploads=
MemoryLimit=128
PostMaxSize=56
ShortOpenTag=
UploadMaxFilesize=48
(ah, now I see how to upload screenshot!) :

OK, I found it.
Webtop is behind reverse proxy nginx. There, the default max upload site is 1MB.
I used to have that upped to 1 GB, but for some reason that line in the config was gone…
I restored it, and now upload is fine again.
client_max_body_size 1024M;

2 Likes

Usually configurations don’t disappear into the wind. Don’t forget to backup NethServer and the nginx host.