Error number: 1 occurred while uploading file named xxxx, The system does not permit uploading files of with size 0

Hello,

I am finding difficulty in uploading an image in the Patient information category in the Document Manager and i am having the error

Error number: 1 occurred while uploading file named: xxx.jpeg
The system does not permit uploading files of with size 0.

The file size is not zero.

This was what i found in the php error logs

Currently running Ubuntu
OpenEMR v6.1.1

I am not having this issue with 6.1.0

Thanks in advance