Skip to content

How to get the files from Google Drive? #5

@ElangoPrince

Description

@ElangoPrince

Get the file or selected file path from google drive. state any example for that?

my code:

const sourceUri = {uri: 'https://drive.google.com'};
  const destinationPath = "foo-bar/docs/info.pdf";
  const mimeType = null;
  const scope = 'visible';

    RNCloudFs.copyToCloud({
      sourcePath: sourceUri, 
      targetPath: destinationPath, 
      mimeType: mimeType, 
      scope: scope
    })
    .then((path) => {
      console.log("it worked", path);
    })
    .catch((err) => {
      console.warn("it failed", err);
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions