How to use Google Drive API to upload, delete and create a public URL for a file. 🔥

  Рет қаралды 212,095

Mafia Codes

Mafia Codes

Күн бұрын

Пікірлер: 197
@mafiacodes
@mafiacodes 2 жыл бұрын
Refresh tokens may stop working after they are granted, either because: The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days With reference to Github page: github.com/googleapis/google-api-nodejs-client#readme
@buraksurumcuoglu8303
@buraksurumcuoglu8303 2 жыл бұрын
Could you make a video showing how to prevent the refresh tokens expiring after 7 days? I've changed my app's publishing status from "Testing" to "Production" but still got the same problem after a week.
@mxo3212
@mxo3212 Жыл бұрын
can you make a video on this plz
@bekjonbakhromov
@bekjonbakhromov Жыл бұрын
how can i use it after 7 days?
@ZiziKarma
@ZiziKarma Жыл бұрын
Thank you for the github reference. I'm struggling to get through it and make my application retrieve a new refresh token once the old one expires. Are you against making a video explaining how to use this API in production, where you don't have to manually get a new refresh token after the old one expires?
@Lerndemy
@Lerndemy Жыл бұрын
@mafiacodes How can i add feature like import files from google drive to my platform, my platform is running in nestjs backend with s3 for storage
@enochdollar-bill3306
@enochdollar-bill3306 26 күн бұрын
of all the videos yours was the absolute best. u explained so well. u deserve a lot. thank you.
@mathewsedwirds4521
@mathewsedwirds4521 5 ай бұрын
Still working even two years later. Thanks bro!
@arashaadd
@arashaadd 3 жыл бұрын
I'm busy watching your other videos for a project and they helped alot bro 😭. Thanks man, I greatly appreciate you sharing with us 💪
@juliojustice3100
@juliojustice3100 3 жыл бұрын
I dont mean to be so off topic but does anybody know a method to log back into an Instagram account?? I was dumb lost my login password. I appreciate any assistance you can offer me
@PayneDeathz
@PayneDeathz Жыл бұрын
Thank you so much! You have saved me so much time exploring the documentation and reading some random blogs on how to implement Google Drive.
@mafiacodes
@mafiacodes Жыл бұрын
You're very welcome!
@dineshtutorialhindi
@dineshtutorialhindi Жыл бұрын
Very good explanation for the API Setup. It helped me. Thanks
@RonKirchner
@RonKirchner Жыл бұрын
You are my hero thank you. That was very helpful and worked all exactly like in your demonstration!
@ayushkhamar4642
@ayushkhamar4642 Жыл бұрын
Thanks bro, Couldn't find a better video!!!
@abedabdesselem9491
@abedabdesselem9491 2 жыл бұрын
Thank you so much, you are a life saver, exactly what I was looking for.
@LAVISHGOYAL
@LAVISHGOYAL 3 жыл бұрын
Woah your content is super cool man! Thanks, watched few of your videos on trot, thanks! Subscribed as well!
@rsgamer2255
@rsgamer2255 2 жыл бұрын
Take a week just learning the basics and you will be good, I been using soft soft since it was Fruity Loops back in 03, and still learn
@taniakhan5319
@taniakhan5319 2 жыл бұрын
you the soft soft here is legitimate. Even my operating system is downloaded here lmao.
@vimalgalani7715
@vimalgalani7715 3 жыл бұрын
Thanks man. This is what I was looking for. You saved me. 🙌🙌
@mafiacodes
@mafiacodes 3 жыл бұрын
Glad to hear it!
@MrAupire
@MrAupire Жыл бұрын
I really love your accent
@RicardoRodriguez-zg7gw
@RicardoRodriguez-zg7gw 3 жыл бұрын
Thanks best tutorial of google drive api!
@mafiacodes
@mafiacodes 3 жыл бұрын
Many many thanks
@tanpham1459
@tanpham1459 3 жыл бұрын
Thank you for another amazing video. You saved me tons of time.
@andersonbandeirabbbandeira1341
@andersonbandeirabbbandeira1341 10 ай бұрын
Thank you so much! You're a hero :D
@izzi917
@izzi917 4 ай бұрын
This tutorial is Gold
@marcosfalconi2765
@marcosfalconi2765 10 ай бұрын
Thank you for sharing your knowledge
@anuragpadolkar202
@anuragpadolkar202 3 ай бұрын
Thank you so much bro, it works!❤
@danielrch.7136
@danielrch.7136 3 жыл бұрын
ThanksThis video help me a lot.
@gosienna
@gosienna 2 жыл бұрын
thank you for such detailed instruction!
@vasilnadiradze8638
@vasilnadiradze8638 4 ай бұрын
thank you very much, it was so helpful ❣❣❣
@AndreasAanestad
@AndreasAanestad 2 жыл бұрын
Your video helped me alot! Thanks so much for sharing the knowledge!
@nobel1378
@nobel1378 Жыл бұрын
Thanks alot ❤❤❤
@teacherspoll4408
@teacherspoll4408 2 жыл бұрын
YOU ARE THE BEST!!!!!!!
@KaitoProduction
@KaitoProduction 3 жыл бұрын
thank you for toturial
@matthelosh
@matthelosh 2 жыл бұрын
Really Useful and simple.. Thanks..
@muratasarslan2359
@muratasarslan2359 2 жыл бұрын
Thanks a lot 🙂
@TechAventure
@TechAventure 2 жыл бұрын
Awesome and informative
@karthikeyan9892
@karthikeyan9892 2 жыл бұрын
Thanks for the video. I like to show progress bar for upload or download and came to know that we can do that with resumable upload. Blogs on the internet are not clear. Can you upload a video on it. As soon as possible please. Thank you once again.
@asifsuncuts9557
@asifsuncuts9557 3 жыл бұрын
Good stuff and very informative. Just want to share that I was looking for "how to get refresh token from my web server or desktop app" and you did this with few magic clicks on developer console. Killing the purpose of how to get that on production.
@mafiacodes
@mafiacodes 3 жыл бұрын
Use google oauth signin with the required scope of google drive, it is that simple...
@wassup102
@wassup102 Жыл бұрын
thank you sir
@shawncrocker7037
@shawncrocker7037 2 жыл бұрын
That was a great video!
@MrAvelino2010
@MrAvelino2010 3 жыл бұрын
How to upload a file to particular folder? I tried but didn't return the folder id
@nicholasyelle497
@nicholasyelle497 2 жыл бұрын
Great tutorial. Appreciate it, thank you.
@carloseduardosanchezcarras4151
@carloseduardosanchezcarras4151 8 ай бұрын
muy bueno brother vi el video subtitulado pero igual entendi full gracias
@marcoguilherme2477
@marcoguilherme2477 2 жыл бұрын
Segui o passo a passo e funcionou direitinho. Muito obrigado!
@swastikchandugaming2493
@swastikchandugaming2493 2 жыл бұрын
Thanks... This helped me
@itsjinendrajain
@itsjinendrajain 3 жыл бұрын
Your video Really help me, thanks bro
@trulymittal
@trulymittal 3 жыл бұрын
Refresh tokens may stop working after they are granted, either because: The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days
@jeancoelho5330
@jeancoelho5330 2 жыл бұрын
How to work around this and get the refresh token with no expiration?
@hicee
@hicee 2 жыл бұрын
@@jeancoelho5330 i have the same question
@jeancoelho5330
@jeancoelho5330 2 жыл бұрын
@@hicee I turned my application in to production mode and worked for me, until now, but i was reading about it and looks like it will work for 200 days. I dont have a clue how to get the refresh token with no expiration
@buraksurumcuoglu8303
@buraksurumcuoglu8303 2 жыл бұрын
@@jeancoelho5330 I created a brand new tokens from the ground up and then turned my application to production mode, I got the refresh token expiration error after 1 week again...
@ethanlal4517
@ethanlal4517 3 жыл бұрын
Thanks a lot!
@akashkunjalwar3921
@akashkunjalwar3921 Жыл бұрын
Thanks for the tutorial. I have a query here, I can download it and can view it, but how would I use the url or id or any information to show the image inside an application in UI? Let me put it in simple words, how would I use the information to display the picture in my react application. Could you please help me on this?
@mafiacodes
@mafiacodes Жыл бұрын
I guess ur looking for sign in with google, here’s the video for that How to use One-tap Google sign in, including idToken validation server side kzbin.info/www/bejne/d56ToaWqlK2BoJY
@akashkunjalwar3921
@akashkunjalwar3921 Жыл бұрын
@@mafiacodes I'm trying to get the url of the image I upload in the drive to provide it as an "src" attribute in , I'm unable to fetch the image that I uploaded in the drive and display it in the UI. It just shows the "alt" text of image. Hope I was able to convey my issue. I certainly get the webViewLink and all, but I'm unable to use it in "src" attribute
@Algo_RL
@Algo_RL Жыл бұрын
the refresh token stops working (expires) after a few days, so it's not practical to use in coding.
@mafiacodes
@mafiacodes Жыл бұрын
Read pinned comment
@christoferi9636
@christoferi9636 Жыл бұрын
There is a way to read a json from google Drive directly with ReactApp without Node.js??(and which is a library)
@orhancekic_
@orhancekic_ 3 жыл бұрын
Nice video for coding a ad cloaker. Nice tutorial, rep!
@brightertomorrow3343
@brightertomorrow3343 3 жыл бұрын
My access token is expiring after every one hour. Is there any way to prevent expiring? I want my token unexpired forever
@gowthamc1389
@gowthamc1389 3 жыл бұрын
Same problem, how to make tokens unexpired
@brandt003
@brandt003 3 жыл бұрын
You need to fetch a new access token everytime using your Client-ID, Client-Secret and Refresh token. Problem with this tutorial is that the refresh token also gets reset after a week since the application is unpublished.
@SanjaySinghYT
@SanjaySinghYT 2 жыл бұрын
You can regenerate your access token using refresh token and if refresh token expire , you can generate refresh token using Authorization code
@miguelgarzonnaranjo2858
@miguelgarzonnaranjo2858 3 жыл бұрын
Amazing video, thanks a lot!
@sm1le_with_me
@sm1le_with_me 3 жыл бұрын
can you tell me about the refresh token working time? we need to change it regularly or it will work for a life time.
@brandt003
@brandt003 3 жыл бұрын
While the app is in testing mode it will expire after a week. If the app is published the refresh token won't expire.
@buraksurumcuoglu8303
@buraksurumcuoglu8303 2 жыл бұрын
@@brandt003 I switched to production mode, the refresh token still expires after a week, any idea why?
@rushilverma3606
@rushilverma3606 3 жыл бұрын
Hi dude great video, How can I upload file in a specific folder
@venkatram3936
@venkatram3936 3 жыл бұрын
Please make a video how to exchange Authentication code to get access token and refresh token from Android app
@fetz5248
@fetz5248 3 жыл бұрын
If I call method with button, must I put all the connect google drive data in method and call it?
@arne1881
@arne1881 2 жыл бұрын
I need to do this 100% automatically. I'm setting up an web app, that needs to do everything google drive related server side, to the organizations google drive account. Is there any way to do this without the manual confirmation, where u need to allow the app to access google drive etc?
@nhattung9568
@nhattung9568 3 жыл бұрын
Thanks man !!!!!!!!!!!!!!!!!!!!!!
@ProjectAryawarta
@ProjectAryawarta 2 жыл бұрын
Do you have any tutorial for consent screen as internal? I want to upload some application data and manage them on Google drive not user data.
@Jamini06
@Jamini06 2 жыл бұрын
Are you using the Producer version, if so are all the effects and tutorial you use in the video included as standard with the Producer
@mafiacodes
@mafiacodes 2 жыл бұрын
I don't know what's Producer ?
@abhinavdubey8112
@abhinavdubey8112 2 ай бұрын
What is the DriveScope used while posting permission create API. I'm able to successfully upload the file but facing permission issue while generating the public URL
@SaiKumar-tg6ct
@SaiKumar-tg6ct 3 жыл бұрын
Nice explanation. Please make a video on upload image file to aws S3 bucket
@mafiacodes
@mafiacodes 3 жыл бұрын
As soon as possible
@samtyagi6311
@samtyagi6311 2 жыл бұрын
Thanks!
@KyouKo-x7g
@KyouKo-x7g 3 жыл бұрын
wow, thx a lot, is the token finally , we get can use it forever ?????
@jaibunnisamohammad9988
@jaibunnisamohammad9988 Жыл бұрын
please make a tutorial of authorizing app from php,curl and accessing refresh token without playground
@mohdtamsil29
@mohdtamsil29 2 жыл бұрын
hey can you please tell me if the refresh token which we generated will expire? because if it does we could not be able to do crud operations afterwords
@mzpizote
@mzpizote Жыл бұрын
Can i do embed links with this api for my photos to put it in my web site?
@SoozaV
@SoozaV 3 жыл бұрын
Hi, how can we create an upload / download progress bar? Thanks for the video.
@arnisudheendra7072
@arnisudheendra7072 2 жыл бұрын
how to find out what authentication parameters each api requires? for example for dialogflow api where can i find the required parameters and that particular script required to call that api form our node js application?
@aakashwankhede92
@aakashwankhede92 3 жыл бұрын
Hello, I have followed your steps, It worked. But I need to change the refresh token in 3-4 days because the previous token gives invalid grant error, Plz Help
@ashish.narnoli
@ashish.narnoli 3 жыл бұрын
Hi, any suggestion on how to use Firebase AuthToken to authenticate Google drive API?
@habibulislam3386
@habibulislam3386 2 жыл бұрын
You should show the docs reading also how you have got those functions, methods etc. Otherwise it looks like you have memorized everything.
@aishwaryam1052
@aishwaryam1052 3 жыл бұрын
The best video😭
@slambu666
@slambu666 4 ай бұрын
Can google API used for transfer ownership data?
@ABUTAHER-wg7gz
@ABUTAHER-wg7gz Жыл бұрын
does provide refreshToken without redirect url oauthplayground?
@galafamily311
@galafamily311 2 жыл бұрын
Can one use Apex instead of js to upload to google drive?
@chiraggupta9547
@chiraggupta9547 3 жыл бұрын
If I want to upload image in mega so what can I do?
@ashwinjoshy5906
@ashwinjoshy5906 2 жыл бұрын
This helped me a lot, Thank You. P.S i didn't understand the pinned comment, can someone help me with it
@h.nazmulhassanrakib5058
@h.nazmulhassanrakib5058 2 жыл бұрын
is This possible without nodejs.. I want to integrate with react.js
@raveollorza1877
@raveollorza1877 2 жыл бұрын
For once, the software is actually really useful
@jins555
@jins555 3 жыл бұрын
thx a lot, u r a boss
@FernandoSouzadroid
@FernandoSouzadroid 2 жыл бұрын
Hello, would you like to use api for the following: I have a wordpress site, I put files for download, I put the link to my google drive, the user clicks on the link and this file is added to his account? Thanks
@mafiacodes
@mafiacodes 2 жыл бұрын
How ?
@justinnguyen9616
@justinnguyen9616 3 жыл бұрын
Can you share your theme setting of your VS code such as font, color and icon. Your theme is gorgeous.
@mafiacodes
@mafiacodes 3 жыл бұрын
Operator mono Snazzy operator Material design
@ExpoDev_Dash
@ExpoDev_Dash 5 ай бұрын
please make a video on how to publish it
@save7790
@save7790 Жыл бұрын
Hi, nice video! Have you paid for using that google drive APIS? Thanks!
@mafiacodes
@mafiacodes Жыл бұрын
nope...
@romanryaboshtan9270
@romanryaboshtan9270 2 жыл бұрын
24:03 you can write fileId, not fileId:fileId, it's a shorter object fields write form
@diegolobos161
@diegolobos161 2 жыл бұрын
How can I get the token without using the playground, that is, using my own frontend?
@albasrawiecloud2550
@albasrawiecloud2550 3 жыл бұрын
Hi teacher, what kind of error am I having? OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
@mafiacodes
@mafiacodes 3 жыл бұрын
Seems like related to ur operating system
@Morgan_U
@Morgan_U 2 жыл бұрын
Help here. I want to embed an image in HTML using a link, is there a way to do this? i want to use thank you very much in advance)
@oeneikaphotos3826
@oeneikaphotos3826 3 жыл бұрын
THANKS!!!!!
@hugocenturion6056
@hugocenturion6056 2 жыл бұрын
Hi! Is there a way to delete files by name instead of FileID?
@void2623
@void2623 Жыл бұрын
how do you get the file id of a file dynamically?
@technoinfoworldwide2329
@technoinfoworldwide2329 3 жыл бұрын
make one series about blog post or ecommerce project using node,ejs,redis,jwt and others .you havent made complete project on these things sir
@nohaxito
@nohaxito 3 жыл бұрын
Hello, good explanation but I have a query, is there a way to upload folders that contain other folders? I want to make that for example a folder of a VPS be uploaded to Drive, is it possible? other one more thing, what is mimeType: "image / jpg"?
@bot6731
@bot6731 2 жыл бұрын
Jhony Reder Escriba Bautista hace 1 segundo I'm not sure if it's the most efficient way to do it but here's my answer: first create a folder on your drive, when creating the server it returns a .json of this .json you can rescue the id . The following uploads should be done with a loop and using the Id of the folder to upload them to the folder you just created. You can try with the MIMETYPE = 'application/octet-stream' in case you don't have the specific MIMETYPE for each file .
@bharatjagoar6092
@bharatjagoar6092 2 жыл бұрын
twice in video you have said "i will explain you", like what is request body in drive.files.create( ) and after last timestamp also !! ... please sir explain the code because copy paste doesnt works for me .
@Alex-ok7mg
@Alex-ok7mg 2 жыл бұрын
A large file upload addition would be an good extension to its capability.
@cinebody8941
@cinebody8941 Жыл бұрын
Take a look at the Multipart upload docs. Allows retry logic and the ability to insert MASSIVE files.
@bjp232004
@bjp232004 3 жыл бұрын
Thanks for sharing this video. I have a use case where any user of my web application uploads the file that should upload into google drive defined for that application. Right now it's working for only one master user by which I have created the google api credentials. Not working if the user logged in by another email id. Any idea regarding that?
@mafiacodes
@mafiacodes 3 жыл бұрын
u need to use oauth google authentication and then use the respective tokens...
@sagar140
@sagar140 3 жыл бұрын
can we also upload using axios in react only ??.... not using node.js
@mafiacodes
@mafiacodes 3 жыл бұрын
Never without a backend, since u would be exposing ur secrets on frontend
@islam_in_the_west
@islam_in_the_west 2 жыл бұрын
Hello,can you show how to do it for android studio?
@rendisaputra3949
@rendisaputra3949 3 жыл бұрын
sir what is the name of your theme code editor?
@rohitpurkait6951
@rohitpurkait6951 3 жыл бұрын
One of the problems that I faced while doing this, is that the oauth conset screen was showing error. In order to solve that problem just put your app id in the app name and it will pass.
@madhav3444
@madhav3444 2 жыл бұрын
Are you using flutter app?
@madhav3444
@madhav3444 2 жыл бұрын
I'm trying to integrate these functions in my flutter app, but permissions.create(role : dshhs...... Type :....) does not work, I couldn't able to find any documentation to implement these things. Please help
@tee-hee9553
@tee-hee9553 Ай бұрын
why using the incognito web ? I mean how to click to show that tab out ?
@doctamayot
@doctamayot 3 жыл бұрын
Hi, great video, How i choose the folder in upload
How to do pagination server-side
11:39
Mafia Codes
Рет қаралды 23 М.
How to send email using Gmail API (uses OAuth2 and nodemailer)
17:55
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Automated Google Drive Backups in Python
23:53
NeuralNine
Рет қаралды 26 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 203 М.
Control Google Sheets with Node.js / JavaScript (v4 API)
25:51
James Grimshaw
Рет қаралды 125 М.
Web Server Concepts and Examples
19:40
WebConcepts
Рет қаралды 264 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
Node.js File Upload to Google Drive: A Beginner's Tutorial  #googledriveapi
10:22
JWT Authentication Tutorial - Node.js
27:36
Web Dev Simplified
Рет қаралды 1 МЛН
How to generate and use a SSL certificate in NodeJS
13:59
Mafia Codes
Рет қаралды 110 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН