Error on upload - BadRequest - Any suggestions?

Okay, searched for an hour and found a solution, but still do not know if its the right way.

I found a post about modify the php.ini “/etc/php/7.3/fpm/php.ini” and comment out the default ‘sys_temp_dir’ with a ; before it. after restarted php and apache2 and it seems to work. Can anyone confirm if its okay to do that?