Odoo Disconnect Issue

When uploading  a file Disconnect/Reconnect issue

Found that while trying to upload a picture from the expense app from the mobile app the site would disconnect and reconnect.  The image could not be uploaded.  Went to var/log nginx.  I saw here that it was the file size.  In the /etc/nginx.conf I had already increased client_max_body_size 200M;  The file in the var/log was listed as being 2M and being dropped.   What I found was that it was redirecting to https so I had to add the client_max_body_size under the http directive also.  Issue resolved.  I hope this helps someone else.

Odoo CMS- Sample image floating