Build a C# .NET Console App to Upload Multiple Files to Google Drive Using Service Account

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 22

  • @dannyfernandezalvarado8388
    @dannyfernandezalvarado8388 Год назад +3

    It works, maybe you would like to know a couple of important things:
    1. You have to grant access to the service account to write in the folder.
    2. You always have to create a folder, this means you cannot save files in the root folder of the drive. Not at least what this tutorial covers.
    But no more than that, thanks a lot, worked for what I needed.

  • @Ndtvdevelopers
    @Ndtvdevelopers Год назад +4

    Sir Code is Running without error but file not reflected in google drive

  • @christianb5564
    @christianb5564 Месяц назад

    Great work man, thanks to you. So many videos and websites but your tutorial was the only one which helped me find the solution. 👏🖐

  • @shaiwaltripathi8619
    @shaiwaltripathi8619 9 месяцев назад

    Just 1 Question...
    Why have you waisted so much time in writing codes if you had to copy paste from notepad in the end? 🤔

  • @naeimsaifi1251
    @naeimsaifi1251 Год назад +2

    how you solve this error System.InvalidOperationException: 'Error creating credential from JSON or JSON parameters. Unrecognized credential type .'

    • @dannyfernandezalvarado8388
      @dannyfernandezalvarado8388 Год назад +1

      I think he just added the filename, but the FileStream couldn't find it as it wasn't the correct file path. What I tried was to provide there correct Path building it this way:
      var credentialPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, credentialFileName);
      Previously I just added the file to the root folder of the solution, then: Right click > Properties > Change the Copy to Output Directory property to Copy Always

  • @gkmishra2009
    @gkmishra2009 Год назад +1

    Could you please make video on below question in DOT NET.I got this in an interview
    Diffrence between Abstract Class and Concreate class
    Difference between Finalize Method and Finalize block
    Diffrent type of Garbage Collection method
    how to handle Exception using Middleware in Dot Net core
    Exposing Entity will create problem in Entity Framework How we handle it
    How we validate Entity in Entity Framework
    Two Interface have same method how we implement and call?
    without using loop how we do bulk insert and update in sql server?
    how map the data from model to database table if the column are diffrent?
    how map data from list to model using linq query?
    how join two table using linq?
    how join two list using linq?
    what happen if action parameter not matched with any method?
    what is scope of a classs object?
    how garbage collector know which objects needs to be deleted?
    Entity framework -model mapping and how many type of model

    • @Aman-x5g
      @Aman-x5g Год назад

      How much experience do you have?

  • @Aman-x5g
    @Aman-x5g 11 месяцев назад

    You are using services account or oauth?

  • @parassharma7041
    @parassharma7041 Год назад

    You work on every language?

  • @priskosusanto9001
    @priskosusanto9001 Год назад

    How to you solve error json parameter?

  • @anshuvishwakarma6020
    @anshuvishwakarma6020 11 месяцев назад

    Suppose I have to share this file to 100 of computer and every computer has unique email id it is not possible to manually manage credentials file I want if everyone want to upload any file then ask there username and password for authentication and get access to upload file directly on drive

  • @faizanaeem1682
    @faizanaeem1682 9 месяцев назад +1

    where is source code?

    • @CodingShiksha
      @CodingShiksha  9 месяцев назад

      You can buy the full source code of application link is given in description of video

    • @faizanaeem1682
      @faizanaeem1682 9 месяцев назад +1

      @@CodingShiksha how much we have to pay?

  • @Aman-x5g
    @Aman-x5g 11 месяцев назад +1

    Scouce code?

    • @CodingShiksha
      @CodingShiksha  11 месяцев назад

      Link is given in description you can buy the full source code

  • @-02dmytrokotenko49
    @-02dmytrokotenko49 11 месяцев назад

    I did everything as shown in the video, but for some reason my json file looks like this:
    {
    "type": "x",
    "project_id": "x",
    "private_key_id": "x",
    "private_key": "x",
    "client_email": "x",
    "client_id": "x",
    "auth_uri": "x",
    "token_uri": "x",
    "auth_provider_x509_cert_url": "x",
    "client_x509_cert_url": "x",
    "universe_domain": "x"
    }
    what could go wrong?🥲