HttpURLConnection usage for file upload using PUT