title: Attempt to upload file results in 403 - notAllowed response
body: <p>I am trying to use Microsoft REST API to upload a file to OneDrive.
  I am passing access token to the request which I have got from Azure AD service:</p>
  
  <pre><code>URL urlTest = new URL("https://graph.microsoft.com/v1.0/me/drive/root:/TestFolder/RaviPdf.pdf:/content");
  LOGGER.info("url1  : "+urlTest );
  
  HttpURLConnection httpConn = (HttpURLConnection) urlTest.openConnection();
  LOGGER.info("conn1  : "+httpConn );
  httpConn.setDoOutput(true);
  httpConn.setRequestMethod("PUT");
  httpConn.setRequestProperty("Authorization", "Bearer " + accessToken);
  httpConn.setRequestProperty("Accept","application/json");
  httpConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); 
  httpConn.setRequestProperty("charset","UTF-8");
  httpConn.setRequestProperty("Content-Length",Integer.toString(100));
  
  OutputStream os = httpConn.getOutputStream();
  os.write(bArray);
  os.close();  //don't forget to close the OutputStream
  httpConn.connect();
  httpResponseCode = httpConn.getResponseCode();
  LOGGER.info("httpResponseCode "+httpResponseCode );
  //here just printing error stream result 
  LOGGER.info("httpConn.getErrorStream())"+httpConn.getErrorStream());
  </code></pre>
  
  <p>In response I am getting this error:</p>
  
  <pre><code>{
    "error": {
      "code": "notAllowed",
      "message": "You do not have access to create this personal site or you do not have a valid license",
      "innerError": {
        "request-id": "8d09ab84-a922-4713-9643-bbc533af41f9",
        "date": "2019-05-10T11:09:59"
      }
    }
  }
  </code></pre>