code: function uploadFileChunked($path, $writeMode, $inStream, $numBytes = null, $chunkSize = null)
      {
          if ($chunkSize === null) {
              $chunkSize = self::$DEFAULT_CHUNK_SIZE;
          }
  
          Path::checkArgNonRoot("path", $path);
          WriteMode::checkArg("writeMode", $writeMode);
          Checker::argResource("inStream", $inStream);
          Checker::argNatOrNull("numBytes", $numBytes);
          Checker::argIntPositive("chunkSize", $chunkSize);
  
          return $this->_uploadFileChunked($path, $writeMode, $inStream, $numBytes, $chunkSize);
      }
docs: Creates a file on Dropbox, using the data from `$inStream` as the file contents.
  
  This version of `uploadFile` splits uploads the file ~4MB chunks at a time and
  will retry a few times if one chunk fails to upload.  Uses {@link chunkedUploadStart()},
  {@link chunkedUploadContinue()}, and {@link chunkedUploadFinish()}.
  
  @param string $path
  The Dropbox path to save the file to (UTF-8).
  
  @param WriteMode $writeMode
  What to do if there's already a file at the given path.
  
  @param resource $inStream
  The data to use for the file contents.
  
  @param int|null $numBytes
  The number of bytes available from $inStream.
  You can pass in `null` if you don't know.
  
  @param int|null $chunkSize
  The number of bytes to upload in each chunk.  You can omit this (or pass in
  `null` and the library will use a reasonable default.
  
  @return mixed
  The <a href="https://www.dropbox.com/developers/core/docs#metadata-details>metadata
  object</a> for the newly-added file.
  
  @throws Exception