Field 'File' Required when uploading file anywhere in dolibarr

My issue was solved due to php sessions and the following was set in php.ini through cPanel Multi PHP Editor for the domain:

session.save_path = "/tmp"
open_basedir = Off

I was able to list user sessions and also upload product pictures/files after that.