Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link of the uploaded file #1

Open
mahimavuppuluri opened this issue Sep 27, 2020 · 1 comment
Open

Link of the uploaded file #1

mahimavuppuluri opened this issue Sep 27, 2020 · 1 comment

Comments

@mahimavuppuluri
Copy link

Hi,

This looks really good!
I wanted to know if there is anyway to generate and display a sharable link to these files that are getting uploaded?

Thanks,
Mahima

@oshliaer
Copy link
Contributor

oshliaer commented Dec 4, 2020

Yep.

You can get ID of the file from the response of ResumableUploadToGoogleDrive.Do()

ru.Do(resource, function (res, err) {
  if (err) {
    ...
  }
  
  if (res.status == "Uploading") {
    ...
  }

  if (res.status == "Done")
    console.log(res.result.id, res.result.name); // <= it logs id of the file and its name.

});

I'm not sure that the library can share the files for users now. But you can use current token for addition calls to API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants