Click here to Skip to main content
14,924,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is possible to directly upload file from google drive to a local drive using asp.net web application

What I have tried:

I have tried with some sample code.
Posted
Updated 29-Nov-17 2:18am

1 solution

Not directly, no. A web application has no access to a client file system at all.

Your ASP.NET code can either provide a direct link to the Google Drive file or it can download the file from Google Drive and put the data in the stream of bytes it gets into a Response it's sending to the client. The client will have to decide what to do with the file.

A HTTP web application only supports "request/response". The client makes a request of the web application and it responds with some kind of content. It can NOT "push" content to a client without first getting a request from it.
   
Comments
Reka Raj 29-Nov-17 8:43am
   
Thank You for your quick response

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900