bfabiszewski / ulogger-server

μlogger • web viewer for tracks uploaded with μlogger mobile client
GNU General Public License v3.0
522 stars 85 forks source link

Maximum upload size not saved #133

Closed Jhyrachy closed 3 years ago

Jhyrachy commented 4 years ago

Hi, I'm trying to upload a file over the standard limit size (2Mb), so I tried to change it in the settings.

Sadly it's not saved (others stuff, lik Minimum password lenght) is properly saved, and the upload it's prevented by the maximum size message error.

I'm using version 1.1-beta

bfabiszewski commented 4 years ago

When saving the application checks if the value is not greater than any system limits and adjusts the value in case system limit is lower. Please check following PHP settings:

Jhyrachy commented 3 years ago

I'm sorry, but I can't find (I'm using the docker container) any php.ini or .htaccess to edit "upload_max_filesize" (I've seen that in utils.php you define the other 2 values in function of it)

bfabiszewski commented 3 years ago

You can create the files in they do not exist. Setting PHP variables depends on you particular setup. For example in the docker file I use for testing it should be possible to set PHP variables in nginx.conf file with fastcgi_param PHP_VALUE "upload_max_filesize = 10M" If you use apache server you could add .htaccess file with relevant settings.