title: Google drive folder not create inside parent folder (by Folder ID)
body: <p>I upload the files from my site it will upload to google drive inside the child folder via Google Drive API. Everything working fine. But I want to create a folder inside a parent folder. I have parent folder id. But it cannot create inside parent folder. It will create folder outside of parent folder.</p>
  
  <p>I have tried with below code:</p>
  
  <pre><code>        $ParentfolderId="0Bxy_x723UM3tFFFSSSWWW";           
  
          $DriveFolderName = "foldername1";
          $folder_mime = "application/vnd.google-apps.folder";
          $folder_name = $DriveFolderName;
          $folder = new Google_Service_Drive_DriveFile(array('parents' =&gt; array( $ParentfolderId)));
          $folder-&gt;setTitle($folder_name);
          $folder-&gt;setDescription($GoogleDriveDesc); 
          $folder-&gt;setMimeType($folder_mime);             
          $newFolder = $service-&gt;files-&gt;insert($folder);
          $folderId  = $newFolder['id'];
  
          $file = new Google_Service_Drive_DriveFile();
  
          if ($folderId != null) {
              $parent = new Google_Service_Drive_ParentReference();
              $parent-&gt;setId($folderId);          
              $file-&gt;setParents(array($parent));
          } 
          try {
              $data = file_get_contents($filepath);           
              $file-&gt;title = $filename;       
              $chunkSizeBytes = 1 * 1024 * 1024;
  
              $client-&gt;setDefer(true);
              $request = $service-&gt;files-&gt;insert($file);
  
              $media = new Google_Http_MediaFileUpload(
                    $client,
                    $request,
                    '',
                    null,
                    true,
                    $chunkSizeBytes
              );
  
              $media-&gt;setFileSize(filesize($filepath));
              $status = false;
              $handle = fopen($filepath, "rb");
              while (!$status &amp;&amp; !feof($handle)) {
                  $chunk = fread($handle, $chunkSizeBytes);
                  $status = $media-&gt;nextChunk($chunk);
              }
  
              $result = false;
              if ($status != false) {
                  $result = $status;
              }
              return $result;
  
          } catch (Exception $e) {
               print "An error occurred: " . $e-&gt;getMessage();
          }   
  </code></pre>