Working version. Post method gets correct value. Check internet connection before trying to upload