

If this is true does anyone know how I could achieve this? One of my colleagues maybe suggests that there needs to be some sought of user permission to push. Update: There has been little progress so far. However, there seems to be some block between the download and placing of the CSV file in a Google Drive File Stream folder. The code also runs through completely as the log files show that the methods are used. My question is why can't I currently automatically upload a file to Google Drive File Stream through a Windows Service? Is it because Google Drive File Stream requires certain permissions or actions? Is it because the drive is "virtual" and not physical (H:)? Below is the folder I am trying to upload to in Google Drive File Stream (H:\My Drive\Test). public void CSVDownload()Ĭlient.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted) Ĭlient.DownloadFileAsync(new Uri(url), client_DownloadFileCompleted(object CSVDownload, AsyncCompletedEventArgs e)ĮventLog1.WriteEntry("CSV File (NAME.csv) downloaded") This is the current method of downloading and placing the file.

As we have a Google Sheet that manipulates and sought the data for us for any CSV file that is under the given name. However, we intend for it to work through Google Drive File Stream. The CSV would replace the old file with the newly downloaded one with the same name.Īs listed above. In the original test case, it was put into a local folder on my desktop (C:).Put that CSV file into a designated folder. Downloads a CSV file from a regularly updated internal database through a WebClient every hour.
