protected function uploadChunked($path, $resource, $chunkSize = 8000000, $opts = []) {
        $location = $this->applyPathPrefix($path);
        try {
            $fileSize = Util::getStreamSize($resource);
            $localFile = $this->getStreamUri($resource);

            $file = $this->client->uploadChunked($localFile, $location, $fileSize, $chunkSize, $opts);
            return $this->normalizeResponse($file);
        } catch (DropboxClientException $e) {
            return false;
        }
    }
protected function uploadChunked($path, $resource, $chunkSize = 8000000, $opts = []) {
        $location = $this->applyPathPrefix($path);
        try {
            $fileSize = Util::getStreamSize($resource);
            $localFile = $this->getStreamUri($resource);

            $file = $this->client->uploadChunked($localFile, $location, $fileSize, $chunkSize, $opts);
            return $this->normalizeResponse($file);
        } catch (DropboxClientException $e) {
            return false;
        }
    }
protected function uploadChunked ( $ path , $ resource , $ chunkSize = 8000000 , $ opts = [ ] ) { $ location = $ this -> applyPathPrefix ( $ path ) ; try { $ fileSize = Util :: getStreamSize ( $ resource ) ; $ localFile = $ this -> getStreamUri ( $ resource ) ; $ file = $ this -> client -> uploadChunked ( $ localFile , $ location , $ fileSize , $ chunkSize , $ opts ) ; return $ this -> normalizeResponse ( $ file ) ; } catch ( DropboxClientException $ e ) { return false ; } }
This function uploads the file in chunks instead of whole file
This function uploads the file in chunks instead of whole file